@panoramax/web-viewer 5.1.0-develop-224b06bb → 5.1.0-develop-e8b88add

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__ = "224b06b";
12
+ const __COMMIT_HASH__ = "e8b88ad";
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
 
@@ -62,11 +62,17 @@ export default class CoverageMap extends Basic {
62
62
  this["map-style"] = JSON.parse(this["map-style"]);
63
63
  } catch(e) { /* Empty */ }
64
64
 
65
+ this._mapContainer = document.createElement("div");
66
+ }
67
+
68
+ /** @private */
69
+ connectedCallback() {
70
+ super.connectedCallback();
71
+
65
72
  // Setup map styles and sources
66
73
  this.mapStyleComposer = new MapStyleComposer(this);
67
74
  this.mapStyleComposer.addBasemap("streets", this["map-style"], true);
68
75
 
69
- this._mapContainer = document.createElement("div");
70
76
  this.onceAPIReady().then(() => {
71
77
  this.loader.setAttribute("value", 30);
72
78
  this._initParams = new InitParameters(InitParameters.GetComponentProperties(CoverageMap, this));
@@ -88,10 +88,6 @@ export default class Editor extends Basic {
88
88
  this["map-style"] = JSON.parse(this["map-style"]);
89
89
  } catch(e) { /* Empty */ }
90
90
 
91
- // Setup map styles and sources
92
- this.mapStyleComposer = new MapStyleComposer(this);
93
- this.mapStyleComposer.addBasemap("streets", this["map-style"], true);
94
-
95
91
  // Create sub-containers
96
92
  this._psvContainer = document.createElement("div");
97
93
  this._psvContainer.setAttribute("slot", "bg");
@@ -101,6 +97,24 @@ export default class Editor extends Basic {
101
97
  this.grid = createWebComp("pnx-cornered-grid");
102
98
  this.grid.appendChild(this._psvContainer);
103
99
  this.grid.appendChild(this._mapContainer);
100
+ }
101
+
102
+ /** @private */
103
+ connectedCallback() {
104
+ super.connectedCallback();
105
+
106
+ // Setup map styles and sources
107
+ this.mapStyleComposer = new MapStyleComposer(this);
108
+ this.mapStyleComposer.addBasemap("streets", this["map-style"], true);
109
+ if(this.raster) {
110
+ const rasterLayerId = this.mapStyleComposer._createRasterBasemap(this.raster);
111
+ if(this.background === "aerial") { this.mapStyleComposer.switchBasemap(rasterLayerId); }
112
+ }
113
+
114
+ this._moveChildToGrid();
115
+ window.addEventListener("DOMContentLoaded", () => {
116
+ this._moveChildToGrid();
117
+ }, { once: true });
104
118
 
105
119
  this.onceAPIReady().then(() => {
106
120
  this.loader.setAttribute("value", 30);
@@ -137,20 +151,6 @@ export default class Editor extends Basic {
137
151
  }
138
152
  }
139
153
 
140
- connectedCallback() {
141
- super.connectedCallback();
142
-
143
- this._moveChildToGrid();
144
- window.addEventListener("DOMContentLoaded", () => {
145
- this._moveChildToGrid();
146
- }, { once: true });
147
-
148
- if(this.raster) {
149
- const rasterLayerId = this.mapStyleComposer._createRasterBasemap(this.raster);
150
- if(this.background === "aerial") { this.mapStyleComposer.switchBasemap(rasterLayerId); }
151
- }
152
- }
153
-
154
154
  /** @private */
155
155
  render() {
156
156
  return [this.loader, this.grid];
@@ -284,7 +284,8 @@
284
284
  "map_background_more": "Andre baggrunde...",
285
285
  "map_background_default": "Standard",
286
286
  "semantics_draw_invalid_annotation": "Det tegnede område går ud over billedets grænser. Sørg for at tegne inden for det synlige billede.",
287
- "semantics_draw_unfinished_annotation": "Det tegnede område er ikke færdigt. Sørg for, at området er placeret korrekt, inden du gemmer."
287
+ "semantics_draw_unfinished_annotation": "Det tegnede område er ikke færdigt. Sørg for, at området er placeret korrekt, inden du gemmer.",
288
+ "error_pic_load": "Billedet kan ikke indlæses i øjeblikket.\nKontroller din internetforbindelse. Hvis du har forbindelse, skal du sikre dig, at billed-ID'et er gyldigt."
288
289
  },
289
290
  "psv": {
290
291
  "loadError": "Panoramaet kan ikke indlæses",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@panoramax/web-viewer",
3
- "version": "5.1.0-develop-224b06bb",
3
+ "version": "5.1.0-develop-e8b88add",
4
4
  "description": "Panoramax web viewer for geolocated pictures",
5
5
  "main": "./build/cjs/index.js",
6
6
  "module": "./build/esm/index.js",