@hastehaul/common 3.7.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 -3
- package/package.json +1 -1
package/build/utils/utils.js
CHANGED
@@ -97,9 +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
|
-
console.log(
|
102
|
-
cachedGeoJsonData = JSON.parse(geoJsonData);
|
100
|
+
cachedGeoJsonData = yield loadAssetStream(fileName);
|
101
|
+
console.log(cachedGeoJsonData);
|
102
|
+
// cachedGeoJsonData = JSON.parse(geoJsonData!);
|
103
103
|
}
|
104
104
|
// !NB points take the form longitude, latitude
|
105
105
|
const points = (0, helpers_1.point)([latLng[1], latLng[0]]);
|