@panoramax/web-viewer 3.1.1-develop-5214442e → 3.1.1-develop-7d991845
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/CHANGELOG.md +3 -0
- package/build/index.js +1 -1
- package/build/index.js.map +1 -1
- package/package.json +1 -1
- package/src/utils/Map.js +2 -1
package/package.json
CHANGED
package/src/utils/Map.js
CHANGED
|
@@ -109,6 +109,7 @@ export function combineStyles(parent, options) {
|
|
|
109
109
|
|
|
110
110
|
// Complete styles
|
|
111
111
|
style.layers = style.layers.concat(getMissingLayerStyles(style.sources, style.layers));
|
|
112
|
+
if(!style.metadata) { style.metadata = {}; }
|
|
112
113
|
|
|
113
114
|
// Complementary style
|
|
114
115
|
if(options.supplementaryStyle) {
|
|
@@ -155,7 +156,7 @@ export function combineStyles(parent, options) {
|
|
|
155
156
|
});
|
|
156
157
|
|
|
157
158
|
// TODO : remove override once available in default Panoramax style
|
|
158
|
-
if(!style.metadata["panoramax:locales"]) {
|
|
159
|
+
if(!style.metadata?.["panoramax:locales"]) {
|
|
159
160
|
style.metadata["panoramax:locales"] = ["fr", "en", "de", "es", "ru", "pt", "zh", "hi", "latin"];
|
|
160
161
|
}
|
|
161
162
|
|