@panoramax/web-viewer 5.1.0-develop-4f472b56 → 5.1.0-develop-8e8a6849
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.
|
@@ -9,7 +9,7 @@ import BasicStyles from "./Basic.css" with { type: "css" };
|
|
|
9
9
|
document.adoptedStyleSheets.push(AtkinsonStyles);
|
|
10
10
|
document.adoptedStyleSheets.push(BasicStyles);
|
|
11
11
|
|
|
12
|
-
const __COMMIT_HASH__ = "
|
|
12
|
+
const __COMMIT_HASH__ = "8e8a684";
|
|
13
13
|
const __PACKAGE_VERSION__ = "5.1.0";
|
|
14
14
|
const __PACKAGE_ISSUES_URL__ = "https://gitlab.com/panoramax/clients/web-viewer/-/work_items";
|
|
15
15
|
|
|
@@ -497,10 +497,11 @@ export default class MapStyleComposer extends EventTarget {
|
|
|
497
497
|
if(id && !this.layerRanges.panoramax[id]) {
|
|
498
498
|
await this.waitFor("panoramax", id);
|
|
499
499
|
}
|
|
500
|
-
|
|
501
|
-
this.panoramax
|
|
502
|
-
|
|
503
|
-
|
|
500
|
+
|
|
501
|
+
if(id && id !== this.panoramax) {
|
|
502
|
+
this.panoramax = id;
|
|
503
|
+
this.updateMapStyle(true);
|
|
504
|
+
}
|
|
504
505
|
|
|
505
506
|
/**
|
|
506
507
|
* Event for Panoramax endpoint changes
|
|
@@ -622,7 +623,7 @@ export default class MapStyleComposer extends EventTarget {
|
|
|
622
623
|
style = api._endpoints.style;
|
|
623
624
|
}
|
|
624
625
|
else if(api._endpoints.tiles) { // API tiles
|
|
625
|
-
style = { "sources": { "geovisio": { "tiles": [ api._endpoints.tiles ] } } };
|
|
626
|
+
style = { "sources": { "geovisio": { "type": "vector", "tiles": [ api._endpoints.tiles ] } } };
|
|
626
627
|
}
|
|
627
628
|
|
|
628
629
|
// Load from URL
|
package/package.json
CHANGED