@trailstash/ultra 3.4.5 → 3.4.6
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/components/ultra-map.js +7 -3
- package/package.json +1 -1
package/components/ultra-map.js
CHANGED
|
@@ -47,7 +47,7 @@ export class UltraMap extends HTMLElement {
|
|
|
47
47
|
querySources: ["ultra"],
|
|
48
48
|
options: {},
|
|
49
49
|
controls: [],
|
|
50
|
-
fitBounds:
|
|
50
|
+
fitBounds: undefined,
|
|
51
51
|
queryProviders,
|
|
52
52
|
persistState: false,
|
|
53
53
|
};
|
|
@@ -281,11 +281,15 @@ export class UltraMap extends HTMLElement {
|
|
|
281
281
|
}
|
|
282
282
|
|
|
283
283
|
get #fitBounds() {
|
|
284
|
-
if (this.fitBounds) {
|
|
284
|
+
if (this.fitBounds !== undefined) {
|
|
285
285
|
return this.fitBounds;
|
|
286
286
|
}
|
|
287
287
|
const queryProvider = this.queryProviders[this.type];
|
|
288
|
-
if (
|
|
288
|
+
if (
|
|
289
|
+
queryProvider &&
|
|
290
|
+
queryProvider.fitBounds &&
|
|
291
|
+
setQueryBounds(this.query, this.refs.mapLibre.bounds) === this.query
|
|
292
|
+
) {
|
|
289
293
|
return queryProvider.fitBounds;
|
|
290
294
|
}
|
|
291
295
|
return this.fitBounds;
|
package/package.json
CHANGED