Map events and methods

This commit is contained in:
Nick
2017-09-26 20:12:07 -07:00
parent 32cdc559b6
commit 4001fbb51a
38 changed files with 1113 additions and 491 deletions
+12
View File
@@ -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),
]);
}