@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/CHANGELOG.md +1 -0
- package/build/index.js +11 -7
- package/build/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/menus/MapLegend.js +9 -2
- package/src/components/ui/widgets/Legend.js +3 -2
- package/src/translations/da.json +1 -1
- package/src/translations/de.json +1 -1
- package/src/translations/en.json +1 -1
- package/src/translations/eo.json +1 -1
- package/src/translations/fr.json +1 -1
- package/src/translations/it.json +1 -1
- package/src/translations/nl.json +1 -1
- package/src/translations/zh_Hant.json +1 -1
package/package.json
CHANGED
|
@@ -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.
|
|
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
|
|
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.
|
|
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
|
}
|
package/src/translations/da.json
CHANGED
|
@@ -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
|
}
|
package/src/translations/de.json
CHANGED
|
@@ -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": {
|
package/src/translations/en.json
CHANGED
|
@@ -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
|
|
228
|
+
"map_data": "Map based on {m}",
|
|
229
229
|
"more_panoramax": "Discover more about Panoramax"
|
|
230
230
|
}
|
|
231
231
|
}
|
package/src/translations/eo.json
CHANGED
package/src/translations/fr.json
CHANGED
|
@@ -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": "
|
|
226
|
+
"map_data": "Carte basée sur {m}",
|
|
227
227
|
"more_panoramax": "En savoir plus sur Panoramax"
|
|
228
228
|
}
|
|
229
229
|
}
|
package/src/translations/it.json
CHANGED
|
@@ -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
|
}
|
package/src/translations/nl.json
CHANGED
|
@@ -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
|
}
|