@hastehaul/common 2.15.0 → 2.16.0
Sign up to get free protection for your applications and to get access to all the features.
- package/build/utils/utils.js +2 -1
- package/package.json +1 -1
package/build/utils/utils.js
CHANGED
@@ -96,7 +96,8 @@ function isPointInGeoJSON(latLng, fileName) {
|
|
96
96
|
const geoJsonData = yield loadAsset(fileName);
|
97
97
|
cachedGeoJsonData = JSON.parse(geoJsonData);
|
98
98
|
}
|
99
|
-
|
99
|
+
// !NB points take the form longitude, latitude
|
100
|
+
const points = (0, helpers_1.point)([latLng[1], latLng[0]]);
|
100
101
|
for (const feature of cachedGeoJsonData.features) {
|
101
102
|
const { geometry } = feature;
|
102
103
|
if (geometry.type === 'Polygon') {
|