Created
January 13, 2019 10:39
-
-
Save khalid32/a245d7d628f9e21c6ea62ef2787e8d1c to your computer and use it in GitHub Desktop.
Mapbox.geoUtils implementations and outputs.. link: https://github.com/mapbox/react-native-mapbox-gl/blob/master/javascript/utils/geoUtils.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## 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