@kiva/kv-components 8.4.0 → 8.4.2
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/dist/vue/KvMap2.js +4 -4
- package/package.json +2 -2
package/dist/vue/KvMap2.js
CHANGED
|
@@ -181,10 +181,10 @@ const c = {
|
|
|
181
181
|
},
|
|
182
182
|
watch: {
|
|
183
183
|
lat(e, t) {
|
|
184
|
-
t === null && this.long && !this.mapLibreReady && !this.leafletReady && this.initializeMap();
|
|
184
|
+
t === null && this.long !== null && !this.mapLibreReady && !this.leafletReady && this.initializeMap();
|
|
185
185
|
},
|
|
186
186
|
long(e, t) {
|
|
187
|
-
t === null && this.lat && !this.mapLibreReady && !this.leafletReady && this.initializeMap();
|
|
187
|
+
t === null && this.lat !== null && !this.mapLibreReady && !this.leafletReady && this.initializeMap();
|
|
188
188
|
},
|
|
189
189
|
showFundraisingLoans() {
|
|
190
190
|
this.mapInstance && (this.mapInstance.remove(), this.initializeLeaflet());
|
|
@@ -231,9 +231,9 @@ const c = {
|
|
|
231
231
|
initializeMap() {
|
|
232
232
|
const e = document.createElement("script"), t = document.createElement("link");
|
|
233
233
|
e.setAttribute("async", ""), e.setAttribute("defer", ""), t.setAttribute("rel", "stylesheet"), this.checkWebGL() ? (e.setAttribute("vmid", `maplibregljs${this.mapId}`), t.setAttribute("vmid", `maplibreglcss${this.mapId}`), e.setAttribute("src", "https://unpkg.com/maplibre-gl@latest/dist/maplibre-gl.js"), t.setAttribute("href", "https://unpkg.com/maplibre-gl@latest/dist/maplibre-gl.css"), this.testDelayedGlobalLibrary("maplibregl").then((i) => {
|
|
234
|
-
i.loaded && !this.mapLoaded && !this.useLeaflet && this.lat && this.long && (this.initializeMapLibre(), this.mapLibreReady = !0);
|
|
234
|
+
i.loaded && !this.mapLoaded && !this.useLeaflet && this.lat != null && this.long != null && (this.initializeMapLibre(), this.mapLibreReady = !0);
|
|
235
235
|
})) : (e.setAttribute("vmid", `leafletjs${this.mapId}`), t.setAttribute("vmid", `leaftletcss${this.mapId}`), e.setAttribute("src", "https://unpkg.com/leaflet@1.9.4/dist/leaflet.js"), t.setAttribute("href", "https://unpkg.com/leaflet@1.9.4/dist/leaflet.css"), this.testDelayedGlobalLibrary("L").then((i) => {
|
|
236
|
-
i.loaded && !this.mapLoaded && this.lat && this.long && (this.initializeLeaflet(), this.leafletReady = !0);
|
|
236
|
+
i.loaded && !this.mapLoaded && this.lat != null && this.long != null && (this.initializeLeaflet(), this.leafletReady = !0);
|
|
237
237
|
})), document.head.appendChild(e), document.head.appendChild(t);
|
|
238
238
|
},
|
|
239
239
|
initializeLeaflet() {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kiva/kv-components",
|
|
3
|
-
"version": "8.4.
|
|
3
|
+
"version": "8.4.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -125,5 +125,5 @@
|
|
|
125
125
|
"embla-carousel-fade",
|
|
126
126
|
"popper.js"
|
|
127
127
|
],
|
|
128
|
-
"gitHead": "
|
|
128
|
+
"gitHead": "131fd3b8d67f5d7889a9ced962c8a15acdd027fe"
|
|
129
129
|
}
|