@panoramax/web-viewer 4.0.3-develop-e49e7274 → 4.0.3-develop-ffa0bd32

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": "4.0.3-develop-e49e7274",
3
+ "version": "4.0.3-develop-ffa0bd32",
4
4
  "description": "Panoramax web viewer for geolocated pictures",
5
5
  "main": "build/index.js",
6
6
  "author": "Panoramax team",
@@ -14,19 +14,26 @@ export default class MapLegend extends LitElement {
14
14
  /** @private */
15
15
  static styles = css`
16
16
  :host {
17
- font-size: 0.9em;
17
+ font-size: 0.7em;
18
18
  }
19
19
  small {
20
20
  font-size: 1em;
21
21
  }
22
+ .maplibregl-ctrl-attrib-inner {
23
+ display: inline-block;
24
+ }
22
25
  `;
23
26
 
24
27
  /** @private */
25
28
  render() {
29
+ /* eslint-disable indent */
26
30
  const mapAttrib = this._parent?.map?._attribution?._innerContainer;
31
+ const mapLabelParts = this._parent?._t.map.map_data.split("{m}");
27
32
 
28
33
  return html`
29
- ${mapAttrib && mapAttrib.innerHTML.length > 0 ? html`${this._parent?._t.map.map_data}<br />${mapAttrib}` : nothing}
34
+ ${mapAttrib && mapAttrib.innerHTML.length > 0
35
+ ? html`${mapLabelParts.shift()}${mapAttrib}${mapLabelParts.shift()}`
36
+ : nothing}
30
37
  `;
31
38
  }
32
39
  }
@@ -46,7 +46,8 @@ export default class Legend extends LitElement {
46
46
  width: 250px;
47
47
  }
48
48
  .presentation {
49
- font-size: 0.9em;
49
+ font-size: 0.85em;
50
+ line-height: 1em;
50
51
  display: flex;
51
52
  gap: 5px;
52
53
  align-items: center;
@@ -104,7 +105,7 @@ export default class Legend extends LitElement {
104
105
  </pnx-picture-legend>
105
106
  <pnx-map-legend
106
107
  ._parent=${this._parent}
107
- style=${this.focus != "map" ? "display: none": ""}
108
+ style=${this.focus != "map" ? "display: none": "display: block; margin-top: 5px"}
108
109
  ></pnx-map-legend>
109
110
  </div>`;
110
111
  }
@@ -199,7 +199,7 @@
199
199
  "thumbnail": "Miniature af billedet, der holdes",
200
200
  "not_public": "Ikke offentligt synlig",
201
201
  "slow_loading": "Kortet indlæses langsomt og kan virke defekt",
202
- "map_data": "Kortdata:",
202
+ "map_data": "Kortdata: {m}",
203
203
  "more_panoramax": "Få mere at vide om Panoramax"
204
204
  }
205
205
  }
@@ -225,7 +225,7 @@
225
225
  "not_public": "Nicht öffentlich sichtbar",
226
226
  "loading": "Laden…",
227
227
  "slow_loading": "Die Karte wird nur langsam geladen und könnte fehlerhaft erscheinen",
228
- "map_data": "Kartendaten:",
228
+ "map_data": "Kartendaten: {m}",
229
229
  "more_panoramax": "Mehr Infos über Panoramax"
230
230
  },
231
231
  "maplibre": {
@@ -225,7 +225,7 @@
225
225
  "thumbnail": "Thumbnail of hovered picture",
226
226
  "not_public": "Not publicly visible",
227
227
  "slow_loading": "Map is slow to load and could appear broken",
228
- "map_data": "Map data:",
228
+ "map_data": "Map based on {m}",
229
229
  "more_panoramax": "Discover more about Panoramax"
230
230
  }
231
231
  }
@@ -211,6 +211,6 @@
211
211
  "thumbnail": "Miniaturo de la surflikta bildo",
212
212
  "not_public": "Ne publike videbla",
213
213
  "more_panoramax": "Malkovri pli pri Panoramax",
214
- "map_data": "Kartaj datumoj :"
214
+ "map_data": "Kartaj datumoj : {m}"
215
215
  }
216
216
  }
@@ -223,7 +223,7 @@
223
223
  "thumbnail": "Miniature de la photo survolée",
224
224
  "not_public": "Masqué au public",
225
225
  "slow_loading": "La carte est longue à charger et pourrait apparaître cassée",
226
- "map_data": "Données cartographiques :",
226
+ "map_data": "Carte basée sur {m}",
227
227
  "more_panoramax": "En savoir plus sur Panoramax"
228
228
  }
229
229
  }
@@ -228,7 +228,7 @@
228
228
  "thumbnail": "Miniatura della foto passata con il mouse",
229
229
  "not_public": "Non pubblicamente visibile",
230
230
  "slow_loading": "La mappa impiega troppo tempo a caricarsi e potrebbe apparire a pezzi",
231
- "map_data": "Dati cartografici:",
231
+ "map_data": "Dati cartografici: {m}",
232
232
  "more_panoramax": "Per saperne di più su Panoramax"
233
233
  }
234
234
  }
@@ -228,7 +228,7 @@
228
228
  "slow_loading": "De kaart laadt traag en kan er gebroken uitzien",
229
229
  "thumbnail": "Thumbnail van de aangeduide foto",
230
230
  "not_public": "Niet openbaar zichtbaar",
231
- "map_data": "Kaartdata:",
231
+ "map_data": "Kaartdata: {m}",
232
232
  "more_panoramax": "Meer weten over Panoramax"
233
233
  }
234
234
  }
@@ -198,7 +198,7 @@
198
198
  "thumbnail": "遊標懸停相片的縮圖",
199
199
  "slow_loading": "地圖載入速度緩慢而且可能出現損壞",
200
200
  "more_panoramax": "深入了解 Panoramax",
201
- "map_data": "地圖資料:"
201
+ "map_data": "地圖資料: {m}"
202
202
  },
203
203
  "psv": {
204
204
  "ctrlZoom": "使用 CTRL + 滑鼠滾輪縮放圖片",