mirror of
https://github.com/status-im/react-native-mapbox-gl.git
synced 2026-08-30 20:41:08 +00:00
Map events and methods
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
import turfHelpers from '@turf/helpers';
|
||||
|
||||
export function makePoint (coordinates) {
|
||||
return turfHelpers.point(coordinates);
|
||||
}
|
||||
|
||||
export function makeLatLngBounds (northEastCoordinates, southWestCoordinates) {
|
||||
return turfHelpers.featureCollection([
|
||||
turfHelpers.point(northEastCoordinates),
|
||||
turfHelpers.point(southWestCoordinates),
|
||||
]);
|
||||
}
|
||||
Reference in New Issue
Block a user