@hastehaul/common 3.6.0 → 3.8.0
Sign up to get free protection for your applications and to get access to all the features.
- package/build/utils/utils.js +3 -2
- package/package.json +1 -1
package/build/utils/utils.js
CHANGED
@@ -97,8 +97,9 @@ function isPointInGeoJSON(latLng, fileName) {
|
|
97
97
|
return { isInside: false, properties: null };
|
98
98
|
// Load and parse GeoJSON data only if not already cached
|
99
99
|
if (!cachedGeoJsonData) {
|
100
|
-
|
101
|
-
|
100
|
+
cachedGeoJsonData = yield loadAssetStream(fileName);
|
101
|
+
console.log(cachedGeoJsonData);
|
102
|
+
// cachedGeoJsonData = JSON.parse(geoJsonData!);
|
102
103
|
}
|
103
104
|
// !NB points take the form longitude, latitude
|
104
105
|
const points = (0, helpers_1.point)([latLng[1], latLng[0]]);
|