@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@panoramax/web-viewer",
3
- "version": "3.1.1-develop-5214442e",
3
+ "version": "3.1.1-develop-7d991845",
4
4
  "description": "Panoramax web viewer for geolocated pictures",
5
5
  "main": "build/index.js",
6
6
  "author": "Panoramax team",
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