@hastehaul/common 3.7.0 → 3.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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]]);
|