Skip to content

Instantly share code, notes, and snippets.

@khalid32
Created January 13, 2019 10:39
Show Gist options
  • Save khalid32/a245d7d628f9e21c6ea62ef2787e8d1c to your computer and use it in GitHub Desktop.
Save khalid32/a245d7d628f9e21c6ea62ef2787e8d1c to your computer and use it in GitHub Desktop.
## 1. makeFeature
###### function makeFeature(geometry, properties)
Output -->
{
"type": "Feature",
"properties": {},
"geometry": {
"properties": {
"screenPointY": 839,
"screenPointX": 446
},
"geometry": {
"coordinates": [
90.36047582988351,
23.772868457982568
],
"type": "Point"
},
"type": "Feature"
}
}
## 2. makeFeatureCollection
###### function makeFeatureCollection(features = [])
Output -->
## 3. makePoint
###### function makePoint(coordinates, properties)
output -->
## 4. makeLatLngBounds
###### function makeLatLngBounds(northEastCoordinates, southWestCoordinates)
output -->
## 5. addToFeatureCollection
###### function addToFeatureCollection(featureCollection, feature)
output -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment