Map events and methods

This commit is contained in:
Nick
2017-10-23 16:41:36 -07:00
parent 29a70dc421
commit 967cef979d
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),
]);
}