@panoramax/web-viewer 3.2.3-develop-f219e404 → 3.2.3-develop-6257391e
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/.gitlab-ci.yml +3 -0
- package/CHANGELOG.md +19 -0
- package/CODE_OF_CONDUCT.md +1 -1
- package/README.md +1 -1
- package/build/editor.html +10 -1
- package/build/index.css +2 -2
- package/build/index.css.map +1 -1
- package/build/index.html +1 -1
- package/build/index.js +1682 -5
- package/build/index.js.map +1 -1
- package/build/map.html +1 -1
- package/build/viewer.html +10 -1
- package/build/widgets.html +1 -0
- package/config/jest/mocks.js +172 -0
- package/config/paths.js +1 -0
- package/config/webpack.config.js +26 -0
- package/docs/03_URL_settings.md +3 -11
- package/docs/05_Compatibility.md +59 -76
- package/docs/09_Develop.md +30 -11
- package/docs/90_Releases.md +2 -2
- package/docs/images/class_diagram.drawio +28 -28
- package/docs/images/class_diagram.jpg +0 -0
- package/docs/index.md +112 -0
- package/docs/reference/components/core/Basic.md +153 -0
- package/docs/reference/components/core/CoverageMap.md +160 -0
- package/docs/reference/components/core/Editor.md +172 -0
- package/docs/reference/components/core/Viewer.md +288 -0
- package/docs/reference/components/layout/CorneredGrid.md +29 -0
- package/docs/reference/components/layout/Mini.md +45 -0
- package/docs/reference/components/menus/MapBackground.md +32 -0
- package/docs/reference/components/menus/MapFilters.md +15 -0
- package/docs/reference/components/menus/MapLayers.md +15 -0
- package/docs/reference/components/menus/MapLegend.md +15 -0
- package/docs/reference/components/menus/PictureLegend.md +15 -0
- package/docs/reference/components/menus/PictureMetadata.md +15 -0
- package/docs/reference/components/menus/PlayerOptions.md +15 -0
- package/docs/reference/components/menus/QualityScoreDoc.md +15 -0
- package/docs/reference/components/menus/ReportForm.md +15 -0
- package/docs/reference/components/menus/ShareMenu.md +15 -0
- package/docs/reference/components/ui/Button.md +39 -0
- package/docs/reference/components/ui/ButtonGroup.md +36 -0
- package/docs/reference/components/ui/CopyButton.md +35 -0
- package/docs/reference/components/ui/Grade.md +32 -0
- package/docs/reference/components/ui/LinkButton.md +44 -0
- package/docs/reference/components/ui/Loader.md +54 -0
- package/docs/reference/components/ui/Map.md +214 -0
- package/docs/reference/components/ui/MapMore.md +233 -0
- package/docs/reference/components/ui/Photo.md +369 -0
- package/docs/reference/components/ui/Popup.md +56 -0
- package/docs/reference/components/ui/QualityScore.md +45 -0
- package/docs/reference/components/ui/SearchBar.md +63 -0
- package/docs/reference/components/ui/TogglableGroup.md +39 -0
- package/docs/reference/components/ui/widgets/GeoSearch.md +32 -0
- package/docs/reference/components/ui/widgets/Legend.md +32 -0
- package/docs/reference/components/ui/widgets/MapFiltersButton.md +33 -0
- package/docs/reference/components/ui/widgets/MapLayersButton.md +15 -0
- package/docs/reference/components/ui/widgets/Player.md +32 -0
- package/docs/reference/components/ui/widgets/Share.md +15 -0
- package/docs/reference/components/ui/widgets/Zoom.md +15 -0
- package/docs/reference/utils/API.md +311 -0
- package/docs/reference/utils/InitParameters.md +67 -0
- package/docs/reference/utils/URLHandler.md +102 -0
- package/docs/reference.md +73 -0
- package/docs/shortcuts.md +11 -0
- package/docs/tutorials/aerial_imagery.md +19 -0
- package/docs/tutorials/authentication.md +10 -0
- package/docs/tutorials/custom_widgets.md +64 -0
- package/docs/tutorials/map_style.md +27 -0
- package/docs/tutorials/migrate_v4.md +122 -0
- package/docs/tutorials/synced_coverage.md +42 -0
- package/mkdocs.yml +60 -5
- package/package.json +10 -7
- package/public/editor.html +21 -29
- package/public/index.html +3 -3
- package/public/map.html +19 -18
- package/public/viewer.html +18 -24
- package/public/widgets.html +265 -0
- package/scripts/doc.js +77 -0
- package/src/components/core/Basic.css +44 -0
- package/src/components/core/Basic.js +258 -0
- package/src/components/core/CoverageMap.css +9 -0
- package/src/components/core/CoverageMap.js +105 -0
- package/src/components/core/Editor.css +23 -0
- package/src/components/core/Editor.js +354 -0
- package/src/components/core/Viewer.css +109 -0
- package/src/components/core/Viewer.js +707 -0
- package/src/components/core/index.js +11 -0
- package/src/components/index.js +13 -0
- package/src/components/layout/CorneredGrid.js +109 -0
- package/src/components/layout/Mini.js +117 -0
- package/src/components/layout/index.js +7 -0
- package/src/components/menus/MapBackground.js +106 -0
- package/src/components/menus/MapFilters.js +386 -0
- package/src/components/menus/MapLayers.js +143 -0
- package/src/components/menus/MapLegend.js +54 -0
- package/src/components/menus/PictureLegend.js +103 -0
- package/src/components/menus/PictureMetadata.js +188 -0
- package/src/components/menus/PlayerOptions.js +96 -0
- package/src/components/menus/QualityScoreDoc.js +36 -0
- package/src/components/menus/ReportForm.js +133 -0
- package/src/components/menus/Share.js +228 -0
- package/src/components/menus/index.js +15 -0
- package/src/components/styles.js +365 -0
- package/src/components/ui/Button.js +75 -0
- package/src/components/ui/ButtonGroup.css +49 -0
- package/src/components/ui/ButtonGroup.js +68 -0
- package/src/components/ui/CopyButton.js +71 -0
- package/src/components/ui/Grade.js +54 -0
- package/src/components/ui/LinkButton.js +68 -0
- package/src/components/ui/Loader.js +188 -0
- package/src/components/{Map.css → ui/Map.css} +5 -17
- package/src/components/{Map.js → ui/Map.js} +114 -138
- package/src/components/ui/MapMore.js +324 -0
- package/src/components/{Photo.css → ui/Photo.css} +6 -6
- package/src/components/{Photo.js → ui/Photo.js} +279 -90
- package/src/components/ui/Popup.js +145 -0
- package/src/components/ui/QualityScore.js +152 -0
- package/src/components/ui/SearchBar.js +363 -0
- package/src/components/ui/TogglableGroup.js +162 -0
- package/src/components/ui/index.js +20 -0
- package/src/components/ui/widgets/GeoSearch.css +21 -0
- package/src/components/ui/widgets/GeoSearch.js +139 -0
- package/src/components/ui/widgets/Legend.js +51 -0
- package/src/components/ui/widgets/MapFiltersButton.js +104 -0
- package/src/components/ui/widgets/MapLayersButton.js +79 -0
- package/src/components/ui/widgets/Player.css +7 -0
- package/src/components/ui/widgets/Player.js +148 -0
- package/src/components/ui/widgets/Share.js +30 -0
- package/src/components/ui/widgets/Zoom.js +82 -0
- package/src/components/ui/widgets/index.js +12 -0
- package/src/img/panoramax.svg +13 -0
- package/src/img/switch_big.svg +20 -10
- package/src/index.js +6 -9
- package/src/translations/da.json +1 -1
- package/src/translations/de.json +1 -1
- package/src/translations/en.json +5 -3
- package/src/translations/eo.json +1 -1
- package/src/translations/es.json +1 -1
- package/src/translations/fr.json +5 -3
- package/src/translations/hu.json +1 -1
- package/src/translations/it.json +1 -1
- package/src/translations/ja.json +1 -1
- package/src/translations/nl.json +1 -1
- package/src/translations/pl.json +1 -1
- package/src/translations/sv.json +33 -3
- package/src/translations/zh_Hant.json +1 -1
- package/src/utils/API.js +74 -42
- package/src/utils/InitParameters.js +354 -0
- package/src/utils/URLHandler.js +364 -0
- package/src/utils/geocoder.js +116 -0
- package/src/utils/{I18n.js → i18n.js} +3 -1
- package/src/utils/index.js +11 -0
- package/src/utils/{Map.js → map.js} +216 -80
- package/src/utils/picture.js +433 -0
- package/src/utils/utils.js +315 -0
- package/src/utils/widgets.js +93 -0
- package/tests/components/ui/CopyButton.test.js +52 -0
- package/tests/components/ui/Loader.test.js +54 -0
- package/tests/components/{Map.test.js → ui/Map.test.js} +19 -61
- package/tests/components/{Photo.test.js → ui/Photo.test.js} +89 -57
- package/tests/components/ui/Popup.test.js +24 -0
- package/tests/components/ui/QualityScore.test.js +17 -0
- package/tests/components/ui/SearchBar.test.js +107 -0
- package/tests/components/ui/__snapshots__/CopyButton.test.js.snap +34 -0
- package/tests/components/ui/__snapshots__/Loader.test.js.snap +56 -0
- package/tests/components/{__snapshots__ → ui/__snapshots__}/Map.test.js.snap +11 -38
- package/tests/components/{__snapshots__ → ui/__snapshots__}/Photo.test.js.snap +57 -4
- package/tests/components/ui/__snapshots__/Popup.test.js.snap +29 -0
- package/tests/components/ui/__snapshots__/QualityScore.test.js.snap +11 -0
- package/tests/components/ui/__snapshots__/SearchBar.test.js.snap +65 -0
- package/tests/utils/API.test.js +1 -14
- package/tests/utils/InitParameters.test.js +485 -0
- package/tests/utils/URLHandler.test.js +350 -0
- package/tests/utils/__snapshots__/URLHandler.test.js.snap +21 -0
- package/tests/utils/__snapshots__/picture.test.js.snap +315 -0
- package/tests/utils/__snapshots__/widgets.test.js.snap +19 -0
- package/tests/utils/geocoder.test.js +37 -0
- package/tests/utils/{I18n.test.js → i18n.test.js} +1 -1
- package/tests/utils/map.test.js +67 -0
- package/tests/utils/picture.test.js +745 -0
- package/tests/utils/utils.test.js +288 -0
- package/tests/utils/widgets.test.js +90 -0
- package/docs/01_Start.md +0 -149
- package/docs/02_Usage.md +0 -831
- package/docs/04_Advanced_examples.md +0 -216
- package/src/Editor.css +0 -37
- package/src/Editor.js +0 -361
- package/src/StandaloneMap.js +0 -114
- package/src/Viewer.css +0 -203
- package/src/Viewer.js +0 -1246
- package/src/components/CoreView.css +0 -70
- package/src/components/CoreView.js +0 -175
- package/src/components/Loader.css +0 -74
- package/src/components/Loader.js +0 -120
- package/src/utils/Exif.js +0 -193
- package/src/utils/Utils.js +0 -631
- package/src/utils/Widgets.js +0 -562
- package/src/viewer/URLHash.js +0 -469
- package/src/viewer/Widgets.css +0 -880
- package/src/viewer/Widgets.js +0 -1470
- package/tests/Editor.test.js +0 -126
- package/tests/StandaloneMap.test.js +0 -45
- package/tests/Viewer.test.js +0 -366
- package/tests/__snapshots__/Editor.test.js.snap +0 -298
- package/tests/__snapshots__/StandaloneMap.test.js.snap +0 -30
- package/tests/__snapshots__/Viewer.test.js.snap +0 -195
- package/tests/components/CoreView.test.js +0 -92
- package/tests/components/Loader.test.js +0 -38
- package/tests/components/__snapshots__/Loader.test.js.snap +0 -15
- package/tests/utils/Exif.test.js +0 -124
- package/tests/utils/Map.test.js +0 -113
- package/tests/utils/Utils.test.js +0 -300
- package/tests/utils/Widgets.test.js +0 -107
- package/tests/utils/__snapshots__/Exif.test.js.snap +0 -43
- package/tests/utils/__snapshots__/Utils.test.js.snap +0 -41
- package/tests/utils/__snapshots__/Widgets.test.js.snap +0 -44
- package/tests/viewer/URLHash.test.js +0 -559
- package/tests/viewer/Widgets.test.js +0 -127
- package/tests/viewer/__snapshots__/URLHash.test.js.snap +0 -108
- package/tests/viewer/__snapshots__/Widgets.test.js.snap +0 -403
- /package/tests/utils/__snapshots__/{Map.test.js.snap → geocoder.test.js.snap} +0 -0
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
import { LitElement, html, nothing } from "lit";
|
|
2
|
+
import { fa } from "../../../utils/widgets";
|
|
3
|
+
import { faBackward } from "@fortawesome/free-solid-svg-icons/faBackward";
|
|
4
|
+
import { faPlay } from "@fortawesome/free-solid-svg-icons/faPlay";
|
|
5
|
+
import { faPause } from "@fortawesome/free-solid-svg-icons/faPause";
|
|
6
|
+
import { faForward } from "@fortawesome/free-solid-svg-icons/faForward";
|
|
7
|
+
import { faEllipsisVertical } from "@fortawesome/free-solid-svg-icons/faEllipsisVertical";
|
|
8
|
+
import "./Player.css";
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Player widget shows prev/play/pause/next/more buttons in a unified toolbar.
|
|
12
|
+
* @class Panoramax.components.ui.widgets.Player
|
|
13
|
+
* @element pnx-widget-player
|
|
14
|
+
* @extends [lit.LitElement](https://lit.dev/docs/api/LitElement/)
|
|
15
|
+
* @example
|
|
16
|
+
* ```html
|
|
17
|
+
* <pnx-widget-player _parent=${viewer} />
|
|
18
|
+
* ```
|
|
19
|
+
*/
|
|
20
|
+
export default class Player extends LitElement {
|
|
21
|
+
/**
|
|
22
|
+
* Component properties.
|
|
23
|
+
* @memberof Panoramax.components.ui.widgets.Player#
|
|
24
|
+
* @type {Object}
|
|
25
|
+
* @property {boolean} [playing=false] Is sequence currently playing ?
|
|
26
|
+
*/
|
|
27
|
+
static properties = {
|
|
28
|
+
playing: {type: Boolean, reflect: true},
|
|
29
|
+
_activePrev: {state: true},
|
|
30
|
+
_activePlay: {state: true},
|
|
31
|
+
_activeNext: {state: true},
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
constructor() {
|
|
35
|
+
super();
|
|
36
|
+
|
|
37
|
+
this.playing = false;
|
|
38
|
+
this._activePrev = true;
|
|
39
|
+
this._activePlay = true;
|
|
40
|
+
this._activeNext = true;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
/** @private */
|
|
44
|
+
createRenderRoot() {
|
|
45
|
+
return this;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/** @private */
|
|
49
|
+
connectedCallback() {
|
|
50
|
+
super.connectedCallback();
|
|
51
|
+
|
|
52
|
+
this._parent?.oncePSVReady?.().then(() => {
|
|
53
|
+
this._parent.psv.addEventListener("sequence-playing", () => this.playing = true);
|
|
54
|
+
this._parent.psv.addEventListener("sequence-stopped", () => this.playing = false);
|
|
55
|
+
this._parent.psv.addEventListener("picture-loaded", this._changeActiveStates.bind(this));
|
|
56
|
+
this._parent.addEventListener("pictures-navigation-changed", this._changeActiveStates.bind(this));
|
|
57
|
+
this._changeActiveStates();
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
/** @private */
|
|
62
|
+
_changeActiveStates() {
|
|
63
|
+
if(this._parent.psv.getPicturesNavigation?.() === "pic") {
|
|
64
|
+
this._activeNext = false;
|
|
65
|
+
this._activePlay = false;
|
|
66
|
+
this._activePrev = false;
|
|
67
|
+
}
|
|
68
|
+
else {
|
|
69
|
+
this._activePrev = this._parent.psv.getPictureMetadata()?.sequence?.prevPic != null;
|
|
70
|
+
|
|
71
|
+
if(this._parent.psv.getPictureMetadata()?.sequence?.nextPic != null) {
|
|
72
|
+
this._activeNext = true;
|
|
73
|
+
this._activePlay = true;
|
|
74
|
+
}
|
|
75
|
+
else {
|
|
76
|
+
this._activeNext = false;
|
|
77
|
+
this._activePlay = false;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
this.requestUpdate();
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
/** @private */
|
|
84
|
+
_onPlayClick() {
|
|
85
|
+
if(this._parent?.psv?.isSequencePlaying()) {
|
|
86
|
+
this.playing = false;
|
|
87
|
+
this._parent?.psv?.stopSequence();
|
|
88
|
+
}
|
|
89
|
+
else {
|
|
90
|
+
this.playing = true;
|
|
91
|
+
this._parent?.psv?.playSequence();
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
/** @private */
|
|
96
|
+
render() {
|
|
97
|
+
if(!this._parent?.psv?.addEventListener) { return nothing; }
|
|
98
|
+
|
|
99
|
+
return html`
|
|
100
|
+
<pnx-button-group
|
|
101
|
+
id="pnx-widget-player"
|
|
102
|
+
dir="row"
|
|
103
|
+
size="xl"
|
|
104
|
+
class="pnx-print-hidden"
|
|
105
|
+
>
|
|
106
|
+
<pnx-button
|
|
107
|
+
kind="superflat"
|
|
108
|
+
id="pnx-player-prev"
|
|
109
|
+
title=${this._parent?._t.pnx.sequence_prev}
|
|
110
|
+
@click=${() => this._parent?.psv?.goToPrevPicture()}
|
|
111
|
+
.disabled=${!this._activePrev}
|
|
112
|
+
>${fa(faBackward)}</pnx-button>
|
|
113
|
+
|
|
114
|
+
<pnx-button
|
|
115
|
+
kind="superflat"
|
|
116
|
+
id="pnx-player-play"
|
|
117
|
+
title=${this.playing ? this._parent?._t.pnx.sequence_pause : this._parent?._t.pnx.sequence_play}
|
|
118
|
+
.disabled=${!this._activePlay}
|
|
119
|
+
@click=${this._onPlayClick.bind(this)}
|
|
120
|
+
>${this.playing ? fa(faPause) : fa(faPlay)}</pnx-button>
|
|
121
|
+
|
|
122
|
+
<pnx-button
|
|
123
|
+
kind="superflat"
|
|
124
|
+
id="pnx-player-next"
|
|
125
|
+
title=${this._parent?._t.pnx.sequence_next}
|
|
126
|
+
.disabled=${!this._activeNext}
|
|
127
|
+
@click=${() => this._parent?.psv?.goToNextPicture()}
|
|
128
|
+
>${fa(faForward)}</pnx-button>
|
|
129
|
+
|
|
130
|
+
${!this._parent?.isWidthSmall() ? html`
|
|
131
|
+
<pnx-togglable-group padded="false" ._parent=${this._parent}>
|
|
132
|
+
<pnx-button
|
|
133
|
+
kind="flat"
|
|
134
|
+
id="pnx-player-more"
|
|
135
|
+
title=${this._parent?._t.pnx.sequence_more}
|
|
136
|
+
class="pnx-xs-hidden"
|
|
137
|
+
slot="button"
|
|
138
|
+
>${fa(faEllipsisVertical)}</pnx-button>
|
|
139
|
+
|
|
140
|
+
<pnx-player-options ._parent=${this._parent}></pnx-player-options>
|
|
141
|
+
</pnx-togglable-group>
|
|
142
|
+
` : nothing}
|
|
143
|
+
</pnx-button-group>
|
|
144
|
+
`;
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
customElements.define("pnx-widget-player", Player);
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { LitElement, html } from "lit";
|
|
2
|
+
import { fa } from "../../../utils/widgets";
|
|
3
|
+
import { faShareNodes } from "@fortawesome/free-solid-svg-icons/faShareNodes";
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Share button handles showing/hiding share menu.
|
|
7
|
+
* @class Panoramax.components.ui.widgets.Share
|
|
8
|
+
* @element pnx-widget-share
|
|
9
|
+
* @extends [lit.LitElement](https://lit.dev/docs/api/LitElement/)
|
|
10
|
+
* @example
|
|
11
|
+
* ```html
|
|
12
|
+
* <pnx-widget-share _parent=${viewer} />
|
|
13
|
+
* ```
|
|
14
|
+
*/
|
|
15
|
+
export default class Share extends LitElement {
|
|
16
|
+
/** @private */
|
|
17
|
+
render() {
|
|
18
|
+
return html`<pnx-togglable-group ._parent=${this._parent}>
|
|
19
|
+
<pnx-button
|
|
20
|
+
slot="button"
|
|
21
|
+
kind="flat"
|
|
22
|
+
size="xxl"
|
|
23
|
+
title=${this._parent?._t.pnx.share}
|
|
24
|
+
>${fa(faShareNodes)}</pnx-button>
|
|
25
|
+
<pnx-share-menu ._parent=${this._parent}></pnx-share-menu>
|
|
26
|
+
</pnx-togglable-group>`;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
customElements.define("pnx-widget-share", Share);
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { LitElement, html } from "lit";
|
|
2
|
+
import { PSV_DEFAULT_ZOOM, PSV_ANIM_DURATION } from "../Photo";
|
|
3
|
+
import { PSV_ZOOM_DELTA } from "../../core/Viewer";
|
|
4
|
+
import { fa } from "../../../utils/widgets";
|
|
5
|
+
import { faPlus } from "@fortawesome/free-solid-svg-icons/faPlus";
|
|
6
|
+
import { faMinus } from "@fortawesome/free-solid-svg-icons/faMinus";
|
|
7
|
+
import "../ButtonGroup.css";
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Widget for +/- zoom on PSV or Map.
|
|
11
|
+
* @class Panoramax.components.ui.widgets.Zoom
|
|
12
|
+
* @element pnx-widget-zoom
|
|
13
|
+
* @extends [lit.LitElement](https://lit.dev/docs/api/LitElement/)
|
|
14
|
+
* @example
|
|
15
|
+
* ```html
|
|
16
|
+
* <pnx-widget-zoom _parent=${viewer} />
|
|
17
|
+
* ```
|
|
18
|
+
*/
|
|
19
|
+
export default class Zoom extends LitElement {
|
|
20
|
+
/** @private */
|
|
21
|
+
static properties = {
|
|
22
|
+
_lastWantedZoom: {state: true},
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
/** @private */
|
|
26
|
+
createRenderRoot() {
|
|
27
|
+
return this;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/** @private */
|
|
31
|
+
connectedCallback() {
|
|
32
|
+
super.connectedCallback();
|
|
33
|
+
this._parent?.oncePSVReady?.().then(() => this._lastWantedZoom = this._parent?.psv?.getZoomLevel() || PSV_DEFAULT_ZOOM);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/** @private */
|
|
37
|
+
_onClick(e, zoomIn) {
|
|
38
|
+
if(this._parent.map && this._parent.isMapWide()) {
|
|
39
|
+
if(zoomIn) { this._parent.map.zoomIn({}, {originalEvent: e}); }
|
|
40
|
+
else { this._parent.map.zoomOut({}, {originalEvent: e}); }
|
|
41
|
+
}
|
|
42
|
+
else {
|
|
43
|
+
if(this._parent.lastPsvAnim) { this._parent.lastPsvAnim.cancel(); }
|
|
44
|
+
const goToZoom = zoomIn ?
|
|
45
|
+
Math.min(100, this._lastWantedZoom + PSV_ZOOM_DELTA)
|
|
46
|
+
: Math.max(0, this._lastWantedZoom - PSV_ZOOM_DELTA);
|
|
47
|
+
this._parent.lastPsvAnim = this._parent.psv.animate({
|
|
48
|
+
speed: PSV_ANIM_DURATION,
|
|
49
|
+
zoom: goToZoom
|
|
50
|
+
});
|
|
51
|
+
this._lastWantedZoom = goToZoom;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
/** @private */
|
|
56
|
+
render() {
|
|
57
|
+
return html`
|
|
58
|
+
<pnx-button-group
|
|
59
|
+
id="pnx-widget-zoom"
|
|
60
|
+
dir="column"
|
|
61
|
+
size="xl"
|
|
62
|
+
class="pnx-mobile-hidden pnx-print-hidden"
|
|
63
|
+
>
|
|
64
|
+
<pnx-button
|
|
65
|
+
id="pnx-zoom-in"
|
|
66
|
+
kind="superflat"
|
|
67
|
+
title=${this._parent?._t.pnx.zoomIn}
|
|
68
|
+
@click=${e => this._onClick(e, true)}
|
|
69
|
+
>${fa(faPlus)}</pnx-button>
|
|
70
|
+
|
|
71
|
+
<pnx-button
|
|
72
|
+
id="pnx-zoom-out"
|
|
73
|
+
kind="superflat"
|
|
74
|
+
title=${this._parent?._t.pnx.zoomOut}
|
|
75
|
+
@click=${e => this._onClick(e, false)}
|
|
76
|
+
>${fa(faMinus)}</pnx-button>
|
|
77
|
+
</pnx-button-group>
|
|
78
|
+
`;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
customElements.define("pnx-widget-zoom", Zoom);
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Pre-assembled UI pieces components
|
|
3
|
+
* @module Panoramax:components:ui:widgets
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
export {default as Zoom} from "./Zoom";
|
|
7
|
+
export {default as Player} from "./Player";
|
|
8
|
+
export {default as Share} from "./Share";
|
|
9
|
+
export {default as GeoSearch} from "./GeoSearch";
|
|
10
|
+
export {default as MapFiltersButton} from "./MapFiltersButton";
|
|
11
|
+
export {default as MapLayersButton} from "./MapLayersButton";
|
|
12
|
+
export {default as Legend} from "./Legend";
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
|
2
|
+
<!-- Generator: Adobe Illustrator 24.0.2, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
|
3
|
+
<svg version="1.1" id="Calque_1" x="0px" y="0px" width="343.25757mm" height="343.25757mm" viewBox="0 0 1297.3515 1297.3513" xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:svg="http://www.w3.org/2000/svg" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:cc="http://creativecommons.org/ns#" xmlns:dc="http://purl.org/dc/elements/1.1/"><metadata id="metadata118"><rdf:RDF><cc:Work rdf:about=""><dc:format>image/svg+xml</dc:format><dc:type rdf:resource="http://purl.org/dc/dcmitype/StillImage"/></cc:Work></rdf:RDF></metadata><defs id="defs72"><rect x="1150.3843" y="2292.8162" width="2107.8879" height="701.88715" id="rect141823"/><rect x="411.88269" y="1261.6108" width="815.34668" height="181.92911" id="rect66775"/><rect x="253.02008" y="1213.0352" width="2209.7197" height="583.65765" id="rect60279"/><rect x="1150.3843" y="2292.8162" width="2551.0081" height="701.39136" id="rect141823-1"/><linearGradient y2="62.288601" x2="248.6918" y1="231.7114" x1="346.50821" gradientUnits="userSpaceOnUse" id="SVGID_1_" gradientTransform="matrix(6.6326761,0,0,6.6326761,-1221.4079,-713.64667)">
|
|
4
|
+
<stop id="stop4" style="stop-color:#8F2A85" offset="0"/>
|
|
5
|
+
<stop id="stop6" style="stop-color:#2570B6" offset="1"/>
|
|
6
|
+
</linearGradient></defs>
|
|
7
|
+
<style type="text/css" id="style2">
|
|
8
|
+
.st0{fill:url(#SVGID_1_);}
|
|
9
|
+
.st1{fill:#FFFFFF;}
|
|
10
|
+
.st2{display:none;fill:none;stroke:#E62054;stroke-width:7.5;stroke-miterlimit:10;}
|
|
11
|
+
</style>
|
|
12
|
+
|
|
13
|
+
<text y="-2248.8188" style="font-style:normal;font-weight:normal;font-size:40px;line-height:125%;font-family:Sans;letter-spacing:0px;word-spacing:0px;white-space:pre;shape-inside:url(#rect60279);display:inline;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" id="text60277" xml:space="preserve" transform="matrix(0.99999889,0,0,0.99999889,-164.71991,-165.18467)"/><text y="-4324.1934" x="304.06815" style="font-style:normal;font-weight:normal;font-size:89.8058px;line-height:200%;font-family:Sans;letter-spacing:0px;word-spacing:0px;white-space:pre;shape-inside:url(#rect66775);display:inline;fill:#000000;fill-opacity:1;stroke:none;stroke-width:2.24515px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" id="text66773" xml:space="preserve" transform="matrix(0.99999889,0,0,0.99999889,-164.71991,-165.18467)"/><text y="-2248.5173" x="-121.66869" style="font-style:normal;font-weight:normal;font-size:40px;line-height:0;font-family:Sans;letter-spacing:0px;word-spacing:0px;white-space:pre;shape-inside:url(#rect141823);display:inline;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" id="text141821" xml:space="preserve" transform="matrix(0.99999889,0,0,0.99999889,-164.71991,-165.18467)"/><text y="-3181.1731" x="-158.83984" style="font-style:normal;font-weight:normal;font-size:40px;line-height:0;font-family:Sans;letter-spacing:0px;word-spacing:0px;white-space:pre;shape-inside:url(#rect141823-1);display:inline;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" id="text141821-0" xml:space="preserve" transform="matrix(0.99999889,0,0,0.99999889,-164.71991,-165.18467)"/><path style="display:none;fill:none;stroke:#e62054;stroke-width:49.7451;stroke-miterlimit:10" id="path49" d="m 1065.871,503.42011 c -19.2347,0 -35.1531,-15.91842 -35.1531,-35.15318 V 334.28687 H 870.87032 c -19.23476,0 -35.15319,-15.91842 -35.15319,-35.15318 0,-19.23476 15.91843,-35.15319 35.15319,-35.15319 H 1065.871 c 19.2348,0 35.1532,15.91843 35.1532,35.15319 v 169.13324 c 0.6633,19.23476 -15.2551,35.15318 -35.1532,35.15318 z" class="st2"/><path style="display:none;fill:none;stroke:#e62054;stroke-width:49.7451;stroke-miterlimit:10" id="path53" d="M 426.48102,1032.7077 H 231.48034 c -19.23476,0 -35.15318,-15.9185 -35.15318,-35.15322 V 828.42124 c 0,-19.23476 15.91842,-35.15318 35.15318,-35.15318 19.23476,0 35.15318,15.91842 35.15318,35.15318 v 133.31679 h 159.8475 c 19.23476,0 35.15318,15.91842 35.15318,35.15318 0,19.23479 -15.25515,35.81649 -35.15318,35.81649 z" class="st2"/><path style="display:none;fill:none;stroke:#e62054;stroke-width:49.7451;stroke-miterlimit:10" id="path57" d="m 231.48034,503.42011 c -19.23476,0 -35.15318,-15.91842 -35.15318,-35.15318 V 299.13369 c 0,-19.23476 15.91842,-35.15319 35.15318,-35.15319 h 195.00068 c 19.23476,0 35.15318,15.91843 35.15318,35.15319 0,19.23476 -15.91842,35.15318 -35.15318,35.15318 h -159.8475 v 133.31679 c 0.66327,19.89803 -15.25515,35.81645 -35.15318,35.81645 z" class="st2"/><path style="display:none;fill:none;stroke:#e62054;stroke-width:49.7451;stroke-miterlimit:10" id="path61" d="M 1065.871,1032.7077 H 870.87032 c -19.23476,0 -35.15319,-15.9185 -35.15319,-35.15322 0,-19.23476 15.91843,-35.15318 35.15319,-35.15318 H 1030.7179 V 829.08451 c 0,-19.23476 15.9184,-35.15319 35.1531,-35.15319 19.2348,0 35.1532,15.91843 35.1532,35.15319 v 169.13324 c 0.6633,18.57145 -15.2551,34.48995 -35.1532,34.48995 z" class="st2"/><g id="g1" transform="translate(-103.80084,387.319)"><circle style="fill:url(#SVGID_1_);stroke-width:6.63268" id="circle9" r="648.67572" cy="261.35672" cx="752.47656" class="st0"/><path style="fill:#ffffff;stroke-width:6.63268" id="path11" d="m 465.28163,199.67283 c -0.66327,0 -1.32653,0 -1.9898,0 l -36.47972,-10.61228 c -2.65307,-0.66327 -4.64287,-3.31634 -4.64287,-6.63268 v -49.0818 c 0,-1.9898 1.32653,-3.97961 2.65307,-5.30614 1.9898,-1.32654 3.9796,-1.32654 5.96941,-0.66327 l 36.47972,13.26535 c 2.65307,0.66327 4.64287,3.31634 4.64287,5.96941 v 46.42873 c 0,1.98981 -0.66327,3.97961 -2.65307,5.30614 -1.32654,0.66327 -2.65307,1.32654 -3.97961,1.32654 z m -29.84704,-22.5511 23.21437,6.63268 v -33.16338 l -23.21437,-8.62248 z" class="st1"/><path style="fill:#ffffff;stroke-width:6.63268" id="path13" d="m 465.28163,292.53029 c -0.66327,0 -0.66327,0 -1.32653,0 l -36.47972,-7.95921 c -3.31634,-0.66326 -5.30614,-3.31633 -5.30614,-6.63267 V 228.8566 c 0,-1.9898 0.66327,-3.9796 2.65307,-5.30614 1.32653,-1.32653 3.9796,-1.9898 5.96941,-1.32653 l 36.47972,9.28574 c 2.65307,0.66327 5.30614,3.31634 5.30614,6.63268 v 47.75527 c 0,1.9898 -0.66327,3.9796 -2.65307,5.30614 -1.98981,0.66327 -3.31634,1.32653 -4.64288,1.32653 z m -29.84704,-19.89802 23.21437,5.30614 v -34.48992 l -23.21437,-5.96941 z" class="st1"/><path style="fill:#ffffff;stroke-width:6.63268" id="path15" d="m 525.63898,306.45891 c -0.66326,0 -1.32653,0 -1.32653,0 l -36.47972,-8.62247 c -3.31634,-0.66327 -5.30614,-3.31634 -5.30614,-6.63268 v -48.41854 c 0,-1.9898 0.66327,-3.9796 2.65307,-5.30614 1.9898,-1.32653 3.97961,-1.9898 5.96941,-1.32653 l 36.47972,9.28574 c 2.65307,0.66327 5.30614,3.31634 5.30614,6.63268 v 47.75527 c 0,1.9898 -0.66327,3.9796 -2.65307,5.30614 -1.9898,0.66327 -3.31634,1.32653 -4.64288,1.32653 z m -29.84704,-20.56129 23.21437,5.30614 v -34.48992 l -23.21437,-5.96941 z" class="st1"/><path style="fill:#ffffff;stroke-width:6.63268" id="path17" d="m 609.87397,285.23435 c -0.66327,0 -1.32653,0 -1.9898,0 l -43.1124,-14.59189 c -2.65307,-0.66326 -3.9796,-3.31633 -3.9796,-5.30614 v -30.51031 c 0,-1.9898 0.66327,-3.9796 2.65307,-4.64287 1.32653,-1.32654 3.31634,-1.32654 5.30614,-0.66327 l 43.11239,15.91842 c 1.98981,0.66327 3.97961,3.31634 3.97961,5.30614 v 29.18378 c 0,1.9898 -0.66327,3.31634 -2.65307,4.64287 -0.66327,0 -1.9898,0.66327 -3.31634,0.66327 z m -37.14298,-24.5409 31.83684,10.61228 v -17.24496 l -31.83684,-11.93881 z" class="st1"/><path style="fill:#ffffff;stroke-width:6.63268" id="path19" d="m 638.39448,350.23458 c -0.66327,0 -0.66327,0 -1.32654,0 l -41.78586,-9.94902 c -2.65307,-0.66327 -4.64287,-2.65307 -4.64287,-5.30614 v -31.17358 c 0,-1.9898 0.66327,-3.31633 1.9898,-4.64287 1.32654,-1.32653 3.31634,-1.32653 5.30614,-0.66327 l 41.78586,11.27555 c 2.65307,0.66327 3.97961,2.65307 3.97961,5.30614 v 29.84705 c 0,1.9898 -0.66327,3.31633 -1.9898,4.64287 -0.66327,0 -1.98981,0.66327 -3.31634,0.66327 z m -35.81645,-20.5613 30.51031,7.29594 V 319.061 l -30.51031,-7.95921 z" class="st1"/><path style="fill:#ffffff;stroke-width:6.63268" id="path21" d="m 525.63898,218.24432 c -0.66326,0 -1.32653,0 -1.9898,0 l -37.14298,-9.94901 c -2.65307,-0.66327 -4.64288,-3.31634 -4.64288,-6.63268 v -49.0818 c 0,-1.9898 1.32654,-3.97961 2.65307,-5.30614 1.98981,-1.32654 3.97961,-1.32654 5.96941,-0.66327 l 37.14299,13.26535 c 2.65307,0.66327 4.64287,3.31634 4.64287,5.96941 v 45.76547 c 0,1.9898 -0.66327,3.9796 -2.65307,5.30614 -1.32653,0.66326 -2.65307,1.32653 -3.97961,1.32653 z m -30.51031,-21.88783 23.87764,6.63268 v -32.50012 l -23.87764,-8.62247 z" class="st1"/><path style="fill:#ffffff;stroke-width:6.63268" id="path23" d="m 690.79262,356.86725 c -8.62248,0 -15.25516,-7.95921 -15.25516,-17.24496 0,-9.28574 6.63268,-17.24495 15.25516,-17.24495 8.62248,0 15.25515,7.95921 15.25515,17.24495 0,9.28575 -6.63267,17.24496 -15.25515,17.24496 z m 0,-25.20417 c -3.31634,0 -5.96941,3.31634 -5.96941,7.95921 0,4.64288 2.65307,7.95922 5.96941,7.95922 3.31634,0 5.96941,-3.31634 5.96941,-7.95922 0,-4.64287 -2.65307,-7.95921 -5.96941,-7.95921 z" class="st1"/><path style="fill:#ffffff;stroke-width:6.63268" id="path25" d="m 1041.6612,199.67283 c -1.3265,0 -2.6531,-0.66327 -3.9796,-1.32654 -1.9898,-1.32653 -2.6531,-3.31633 -2.6531,-5.30614 v -46.42873 c 0,-2.65307 1.9898,-5.30614 4.6429,-5.96941 l 36.4797,-13.26535 c 1.9898,-0.66327 3.9796,-0.66327 5.9694,0.66327 1.9898,1.32653 2.6531,3.31634 2.6531,5.30614 v 49.0818 c 0,2.65307 -1.9898,5.30614 -4.6429,6.63268 l -36.4797,10.61228 c -0.6633,0 -1.3265,0 -1.9898,0 z m 6.6327,-48.41854 v 33.16338 l 23.2143,-6.63267 v -34.48992 z" class="st1"/><path style="fill:#ffffff;stroke-width:6.63268" id="path27" d="m 1041.6612,292.53029 c -1.3265,0 -2.6531,-0.66326 -3.9796,-1.32653 -1.3266,-1.32654 -2.6531,-3.31634 -2.6531,-5.30614 v -47.75527 c 0,-3.31634 1.9898,-5.96941 5.3062,-6.63268 l 36.4797,-9.28574 c 1.9898,-0.66327 3.9796,0 5.9694,1.32653 1.3265,1.32654 2.653,3.31634 2.653,5.30614 v 49.08181 c 0,3.31634 -1.9898,5.96941 -5.3061,6.63267 l -36.4797,7.95921 c -1.3265,0 -1.3265,0 -1.9898,0 z m 6.6327,-49.0818 v 34.48992 l 23.2143,-5.30614 v -35.15319 z" class="st1"/><path style="fill:#ffffff;stroke-width:6.63268" id="path29" d="m 981.9671,306.45891 c -1.32653,0 -2.65307,-0.66326 -3.97961,-1.32653 -1.32653,-1.32654 -2.65307,-3.31634 -2.65307,-5.30614 v -47.75527 c 0,-3.31634 1.98981,-5.96941 5.30615,-6.63268 l 36.47973,-9.28574 c 1.9898,-0.66327 3.9796,0 5.9694,1.32653 1.3265,1.32654 2.6531,3.31634 2.6531,5.30614 v 48.41854 c 0,3.31634 -1.9898,5.96941 -5.3062,6.63268 l -36.4797,8.62247 c -0.66326,0 -1.32653,0 -1.9898,0 z m 6.63268,-49.0818 v 34.48992 l 23.21432,-5.30614 v -34.48992 z" class="st1"/><path style="fill:#ffffff;stroke-width:6.63268" id="path31" d="m 897.06885,285.23435 c -1.32654,0 -2.65307,-0.66327 -3.31634,-1.32653 -1.32654,-1.32654 -2.65307,-2.65307 -2.65307,-4.64288 v -29.18377 c 0,-2.65307 1.32653,-4.64288 3.9796,-5.30614 l 43.77567,-15.91843 c 1.9898,-0.66326 3.9796,-0.66326 5.30614,0.66327 1.32653,1.32654 2.65307,2.65307 2.65307,4.64287 v 30.51031 c 0,2.65308 -1.32654,4.64288 -3.97961,5.30615 l -43.77566,14.59188 c -0.66327,0.66327 -1.32654,0.66327 -1.9898,0.66327 z m 5.9694,-31.17358 v 17.24496 l 32.50012,-10.61228 v -17.90823 z" class="st1"/><path style="fill:#ffffff;stroke-width:6.63268" id="path33" d="m 865.89527,349.57131 c -1.32654,-1.32654 -1.9898,-2.65307 -1.9898,-4.64287 v -29.84705 c 0,-2.65307 1.9898,-4.64287 3.9796,-5.30614 l 41.78586,-11.27555 c 1.9898,-0.66326 3.31634,0 5.30614,0.66327 1.32654,1.32654 1.9898,2.65307 1.9898,4.64287 v 31.17358 c 0,2.65307 -1.9898,5.30614 -4.64287,5.30614 l -41.78586,9.94902 c -0.66327,0.66326 -3.9796,0 -4.64287,-0.66327 z m 9.28575,-29.84704 v 17.90822 l 30.51031,-7.29594 v -19.23476 z" class="st1"/><path style="fill:#ffffff;stroke-width:6.63268" id="path35" d="m 981.9671,218.24432 c -1.32653,0 -2.65307,-0.66327 -3.97961,-1.32653 -1.32653,-1.32654 -2.65307,-3.31634 -2.65307,-5.30614 v -45.76547 c 0,-2.65307 1.98981,-5.30614 4.64288,-5.96941 l 36.4797,-13.26535 c 1.9898,-0.66327 3.9796,-0.66327 5.9694,0.66327 1.9898,1.32653 2.6531,3.31634 2.6531,5.30614 v 49.0818 c 0,3.31634 -1.9898,5.30614 -4.6429,6.63268 l -36.4797,9.94901 c -0.66326,0 -1.32653,0 -1.9898,0 z m 6.63268,-47.75527 v 32.50012 l 23.21432,-6.63268 v -34.48991 z" class="st1"/><path style="fill:#ffffff;stroke-width:6.63268" id="path37" d="m 816.81347,356.86725 c -8.62248,0 -15.25516,-7.95921 -15.25516,-17.24496 0,-9.28574 6.63268,-17.24495 15.25516,-17.24495 8.62247,0 15.25515,7.95921 15.25515,17.24495 0,9.28575 -6.63268,17.24496 -15.25515,17.24496 z m 0,-25.20417 c -3.31634,0 -5.96941,3.31634 -5.96941,7.95921 0,4.64288 2.65307,7.95922 5.96941,7.95922 3.31633,0 5.9694,-3.31634 5.9694,-7.95922 0,-4.64287 -2.65307,-7.95921 -5.9694,-7.95921 z" class="st1"/><path style="fill:#ffffff;stroke-width:6.63268" id="path39" d="m 1275.7947,-13.236074 c 0,-1.326535 0,-1.989803 0,-3.316338 -1.3266,-3.316338 -5.3062,-5.306141 -8.6225,-3.979606 l -37.143,13.9286203 V 7.3252221 13.957898 l 32.5001,-15.2551549 V 529.31683 h -32.5001 v 13.26535 h 39.1328 c 3.9796,0 6.6327,-2.65307 7.2959,-6.63267 V -11.909539 c 0,0 0,-0.663267 -0.6632,-1.326535 z" class="st1"/><path style="fill:#ffffff;stroke-width:6.63268" id="path41" d="m 1108.6512,53.090687 v -13.92862 l -33.1634,12.602085 c -0.6632,0 -0.6632,0.663268 -1.3265,0.663268 0,0 -113.41876,69.6431 -115.40857,70.96963 -1.9898,1.32654 -3.9796,3.31634 -3.9796,5.96941 v 37.80626 l -109.43916,65.00022 c -1.9898,0.66327 -3.31634,3.31634 -3.31634,5.30614 l -0.66326,31.83685 -59.69409,35.15318 c -3.31634,1.9898 -1.9898,6.63268 -1.9898,9.94902 0,3.31633 0,72.29616 0,72.29616 l -25.20417,-9.28574 c -1.32654,-0.66327 -3.31634,-0.66327 -4.64287,0 l -22.5511,9.28574 c 0,0 0,-71.6329 0,-72.29616 0,-3.97961 0.66327,-7.29595 -2.65307,-9.28575 l -59.69409,-35.15318 -0.66326,-31.83685 c 0,-1.9898 -1.32654,-3.97961 -3.31634,-5.30614 L 552.16969,168.49925 v -39.13279 c 0,-2.65307 -1.32654,-4.64287 -3.97961,-5.96941 l -8.62248,-3.9796 -130.66371,-78.928847 c -0.66327,0 -0.66327,-0.663268 -1.32654,-0.663268 l -9.28575,-3.979606 v 14.591888 l 3.97961,1.989803 31.17358,19.898028 -25.20417,-11.27555 c -0.66327,0 -0.66327,0 -0.66327,0 l -9.28575,-5.30614 v 15.918422 458.98119 13.26535 h 5.96941 c 1.9898,0 3.31634,-0.66327 5.30614,-1.9898 1.98981,-1.32654 342.90936,-150.56175 342.90936,-150.56175 0,0 346.88899,151.88828 348.87879,152.55155 1.9898,0.66327 7.2959,0 7.2959,0 V 530.64337 71.66218 57.73356 l -60.3573,26.530705 31.8368,-19.898028 z M 502.42462,485.54117 451.35301,508.09227 V 343.6019 l 51.07161,9.28575 z m 35.81645,-290.51121 v 273.92952 l -22.5511,9.94901 V 347.58151 c 0,-3.31634 -1.9898,-5.96941 -5.30614,-6.63268 l -64.33696,-11.27555 c -1.9898,-0.66327 -3.9796,0 -5.30614,1.32654 -1.9898,1.32653 -2.65307,3.31633 -2.65307,5.30614 v 177.09245 l -26.5307,11.93882 V 76.968321 l 119.38817,53.061409 7.29594,3.97961 z m 13.92862,-11.27555 47.092,27.85724 -47.092,-20.5613 z m 35.81645,183.72512 27.85724,3.97961 0.66327,63.01042 -27.85724,11.93882 z m 61.68389,-76.93904 c 0,0.66327 0,1.9898 0,2.65307 v 126.68412 l -22.5511,9.94901 -0.66327,-63.01042 c 0,-3.31634 -1.9898,-5.30614 -4.64287,-5.96941 L 582.68,354.87745 c -1.9898,0 -3.31634,0 -4.64287,1.32653 -1.32654,1.32654 -1.98981,2.65308 -1.98981,4.64288 l 0.66327,90.86766 -24.5409,10.61228 V 204.97897 l 97.50034,43.11239 z m 13.26535,-5.96941 11.93882,7.29595 -11.93882,-3.97961 z m 33.16338,115.40857 -11.27555,5.30614 v -31.17358 l 11.27555,1.32654 z m 17.90823,-7.95921 -8.62248,3.31633 V 370.1326 c 0,-2.65307 -1.98981,-4.64287 -4.64288,-4.64287 l -20.56129,-1.32653 c -1.32654,0 -2.65307,0.66326 -3.31634,1.32653 -0.66327,0.66327 -1.32654,1.9898 -1.32654,3.31634 v 40.45932 l -12.60208,5.30614 V 302.47931 l 51.07161,17.24496 z m 108.11262,11.93881 -11.27555,-5.30614 v -24.5409 l 11.27555,-0.66327 z m 21.88783,9.94902 -13.26535,-5.96941 v -39.13279 c 0,-1.32654 -0.66327,-2.65307 -1.32654,-3.31634 -0.66327,-0.66327 -1.9898,-1.32653 -3.31634,-1.32653 l -20.56129,1.32653 c -2.65307,0 -4.64288,1.9898 -4.64288,4.64287 v 24.54091 l -7.95921,-3.31634 v -72.95944 l 51.07161,-16.58169 z m 0,-125.35758 -22.5511,7.29594 22.5511,-13.26535 z m 72.29617,157.19442 -27.85724,-12.60208 0.66327,-63.67369 27.85723,-3.97961 z m 38.46952,17.24496 -27.19397,-11.93882 0.66326,-91.53093 c 0,-1.9898 -0.66326,-3.31634 -1.9898,-4.64287 -1.32653,-1.32654 -2.65307,-1.32654 -4.64287,-1.32654 l -39.13279,5.96941 c -2.65307,0.66327 -4.64287,3.31634 -4.64287,5.96941 l -0.66327,63.01042 -19.89803,-8.62247 v -126.68412 -45.1022 l 97.50034,-43.11239 z m 0,-271.93972 -57.04102,25.20417 57.04102,-33.82665 z M 1001.8651,484.8779 V 350.89784 l 51.0716,-8.62247 V 506.76573 Z M 1094.7226,77.631589 V 526.00049 l -28.5205,-12.60208 V 334.97942 c 0,-1.9898 -1.3265,-3.9796 -2.6531,-5.30614 -1.3265,-1.32653 -3.3163,-1.9898 -5.3061,-1.32653 l -64.33698,11.27554 c -3.31634,0.66327 -5.30614,3.31634 -5.30614,6.63268 v 132.65352 l -19.89803,-8.62248 -0.66327,-335.61341 z" class="st1"/><path style="fill:#ffffff;stroke-width:6.63268" id="path43" d="M 243.08698,-0.63398925 274.92383,13.957898 V 9.9782925 -3.9503273 l -28.52051,-9.9490137 -7.29594,-3.316338 c -2.65307,-0.663268 -4.64288,-0.663268 -6.63268,0.663267 -1.9898,0.663268 -3.31634,3.316338 -3.31634,5.306141 V 536.61277 c 0,3.97961 2.65307,6.63268 6.63268,6.63268 h 39.13279 V 529.9801 h -31.83685 z" class="st1"/><path style="fill:#ffffff;stroke-width:6.63268" id="path51" d="m 1169.6718,118.09091 c -20.5613,0 -37.143,-16.58169 -37.143,-37.142983 V -51.042328 H 974.67116 c -20.5613,0 -37.14299,-16.58169 -37.14299,-37.142986 0,-20.561296 16.58169,-37.142986 37.14299,-37.142986 h 195.00064 c 20.5613,0 37.143,16.58169 37.143,37.142986 V 80.947927 c 0,20.561293 -16.5817,37.142983 -37.143,37.142983 z" class="st1"/><path style="fill:#ffffff;stroke-width:6.63268" id="path55" d="M 530.28186,647.37847 H 335.28118 c -20.5613,0 -37.14299,-16.58169 -37.14299,-37.14299 V 441.10224 c 0,-20.5613 16.58169,-37.14299 37.14299,-37.14299 20.5613,0 37.14299,16.58169 37.14299,37.14299 v 131.99025 h 157.85769 c 20.56129,0 37.14298,16.58169 37.14298,37.14299 0,20.5613 -16.58169,37.14299 -37.14298,37.14299 z" class="st1"/><path style="fill:#ffffff;stroke-width:6.63268" id="path59" d="m 335.28118,118.09091 c -20.5613,0 -37.14299,-16.58169 -37.14299,-37.142983 V -88.185314 c 0,-20.561296 16.58169,-37.142986 37.14299,-37.142986 h 195.00068 c 20.56129,0 37.14298,16.58169 37.14298,37.142986 0,20.561296 -16.58169,37.142986 -37.14298,37.142986 H 372.42417 V 80.947927 c 0,20.561293 -16.58169,37.142983 -37.14299,37.142983 z" class="st1"/><path style="fill:#ffffff;stroke-width:6.63268" id="path63" d="M 1169.6718,647.37847 H 974.67116 c -20.5613,0 -37.14299,-16.58169 -37.14299,-37.14299 0,-20.5613 16.58169,-37.14299 37.14299,-37.14299 H 1132.5288 V 441.10224 c 0,-20.5613 16.5817,-37.14299 37.143,-37.14299 20.5613,0 37.143,16.58169 37.143,37.14299 v 169.13324 c 0,20.5613 -16.5817,37.14299 -37.143,37.14299 z" class="st1"/></g></svg>
|
package/src/img/switch_big.svg
CHANGED
|
@@ -13,32 +13,42 @@
|
|
|
13
13
|
id="defs1" />
|
|
14
14
|
<path
|
|
15
15
|
d="m 2.512,90.45 h 8.012 12.834 c 0.008,0 0.014,0.002 0.02,0.002 h 15.423 c 0.008,0 0.014,-0.002 0.02,-0.002 h 1.164 c 1.387,0 2.512,-1.125 2.512,-2.512 V 52.813 l 27.52,-27.516 v 19.109 c 0,1.386 1.125,2.512 2.514,2.512 1.387,0 2.512,-1.126 2.512,-2.512 V 19.233 c 0,-1.387 -1.125,-2.514 -2.512,-2.514 H 47.356 c -1.389,0 -2.514,1.127 -2.514,2.514 0,1.387 1.125,2.512 2.514,2.512 H 66.463 L 40.226,47.977 c -0.08,-0.008 -0.16,-0.023 -0.242,-0.023 H 2.512 C 1.125,47.954 0,49.079 0,50.466 v 1.188 15.424 12.854 8.008 c 0,1.385 1.125,2.51 2.512,2.51 z M 5.025,79.93 V 67.077 52.977 H 37.471 V 85.424 H 10.523 5.025 Z"
|
|
16
|
-
id="path1"
|
|
16
|
+
id="path1"
|
|
17
|
+
style="fill:#2954e9;fill-opacity:1" />
|
|
17
18
|
<path
|
|
18
19
|
d="m 67.078,90.452 c 1.389,0 2.514,-1.125 2.514,-2.514 0,-1.387 -1.125,-2.512 -2.514,-2.512 H 51.655 c -1.387,0 -2.512,1.125 -2.512,2.512 0,1.389 1.125,2.514 2.512,2.514 z"
|
|
19
|
-
id="path2"
|
|
20
|
+
id="path2"
|
|
21
|
+
style="fill:#2954e9;fill-opacity:1" />
|
|
20
22
|
<path
|
|
21
23
|
d="m 90.455,79.93 c 0,-1.387 -1.125,-2.512 -2.514,-2.512 -1.387,0 -2.512,1.125 -2.512,2.512 v 5.496 h -5.496 c -1.389,0 -2.512,1.125 -2.512,2.512 0,1.389 1.123,2.514 2.512,2.514 h 8.008 c 1.389,0 2.514,-1.125 2.514,-2.514 z"
|
|
22
|
-
id="path3"
|
|
24
|
+
id="path3"
|
|
25
|
+
style="fill:#2954e9;fill-opacity:1" />
|
|
23
26
|
<path
|
|
24
27
|
d="m 87.942,41.311 c 1.387,0 2.512,-1.127 2.512,-2.514 V 23.373 c 0,-1.387 -1.125,-2.512 -2.512,-2.512 -1.389,0 -2.514,1.125 -2.514,2.512 v 15.424 c 0,1.387 1.125,2.514 2.514,2.514 z"
|
|
25
|
-
id="path4"
|
|
28
|
+
id="path4"
|
|
29
|
+
style="fill:#2954e9;fill-opacity:1" />
|
|
26
30
|
<path
|
|
27
31
|
d="m 85.428,67.075 c 0,1.387 1.125,2.512 2.514,2.512 1.387,0 2.512,-1.125 2.512,-2.512 V 51.651 c 0,-1.387 -1.125,-2.512 -2.512,-2.512 -1.389,0 -2.514,1.125 -2.514,2.512 z"
|
|
28
|
-
id="path5"
|
|
32
|
+
id="path5"
|
|
33
|
+
style="fill:#2954e9;fill-opacity:1" />
|
|
29
34
|
<path
|
|
30
35
|
d="m 87.942,0 h -8.008 c -1.389,0 -2.512,1.127 -2.512,2.514 0,1.387 1.123,2.512 2.512,2.512 h 5.494 v 5.496 c 0,1.387 1.125,2.514 2.514,2.514 1.387,0 2.512,-1.127 2.512,-2.514 V 2.514 C 90.453,1.127 89.328,0 87.942,0 Z"
|
|
31
|
-
id="path6"
|
|
36
|
+
id="path6"
|
|
37
|
+
style="fill:#2954e9;fill-opacity:1" />
|
|
32
38
|
<path
|
|
33
39
|
d="m 23.377,5.024 h 15.422 c 1.389,0 2.514,-1.125 2.514,-2.512 C 41.313,1.125 40.188,0 38.799,0 H 23.377 c -1.389,0 -2.514,1.125 -2.514,2.512 0,1.387 1.125,2.512 2.514,2.512 z"
|
|
34
|
-
id="path7"
|
|
40
|
+
id="path7"
|
|
41
|
+
style="fill:#2954e9;fill-opacity:1" />
|
|
35
42
|
<path
|
|
36
43
|
d="m 51.653,5.024 h 15.424 c 1.389,0 2.514,-1.125 2.514,-2.512 C 69.591,1.125 68.466,0 67.077,0 H 51.653 c -1.387,0 -2.512,1.125 -2.512,2.512 0,1.387 1.125,2.512 2.512,2.512 z"
|
|
37
|
-
id="path8"
|
|
44
|
+
id="path8"
|
|
45
|
+
style="fill:#2954e9;fill-opacity:1" />
|
|
38
46
|
<path
|
|
39
47
|
d="m 2.512,13.033 c 1.389,0 2.514,-1.125 2.514,-2.514 V 5.024 h 5.498 c 1.387,0 2.512,-1.125 2.512,-2.512 C 13.036,1.125 11.911,0 10.524,0 H 2.512 C 1.125,0 0,1.125 0,2.512 v 8.008 c 0,1.388 1.125,2.513 2.512,2.513 z"
|
|
40
|
-
id="path9"
|
|
48
|
+
id="path9"
|
|
49
|
+
style="fill:#2954e9;fill-opacity:1" />
|
|
41
50
|
<path
|
|
42
51
|
d="m 2.512,41.311 c 1.389,0 2.514,-1.125 2.514,-2.512 V 23.375 C 5.026,21.988 3.901,20.863 2.512,20.863 1.125,20.863 0,21.988 0,23.375 v 15.424 c 0,1.387 1.125,2.512 2.512,2.512 z"
|
|
43
|
-
id="path10"
|
|
52
|
+
id="path10"
|
|
53
|
+
style="fill:#2954e9;fill-opacity:1" />
|
|
44
54
|
</svg>
|
package/src/index.js
CHANGED
|
@@ -1,10 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
import StandaloneMap from "./StandaloneMap";
|
|
3
|
-
import Editor from "./Editor";
|
|
1
|
+
/* eslint-disable import/no-unused-modules */
|
|
4
2
|
|
|
5
|
-
export
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
};
|
|
3
|
+
export * as components from "./components";
|
|
4
|
+
export * as utils from "./utils";
|
|
5
|
+
export {default as Viewer} from "./components/core/Viewer";
|
|
6
|
+
export {default as CoverageMap} from "./components/core/CoverageMap";
|
|
7
|
+
export {default as Editor} from "./components/core/Editor";
|
package/src/translations/da.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"GeolocateControl.LocationNotAvailable": "Placering ikke tilgængelig",
|
|
4
4
|
"GeolocateControl.FindMyLocation": "Find min placering"
|
|
5
5
|
},
|
|
6
|
-
"
|
|
6
|
+
"pnx": {
|
|
7
7
|
"minimize": "Skjul dette modul, du kan vise det igen ved hjælp af knappen i nederste venstre hjørne",
|
|
8
8
|
"share_embed_docs": "Læs mere om indlejringskonfiguration",
|
|
9
9
|
"zoom": "Zoom",
|
package/src/translations/de.json
CHANGED
package/src/translations/en.json
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"GeolocateControl.FindMyLocation": "Find my location",
|
|
9
9
|
"GeolocateControl.LocationNotAvailable": "Location not available"
|
|
10
10
|
},
|
|
11
|
-
"
|
|
11
|
+
"pnx": {
|
|
12
12
|
"zoom": "Zoom",
|
|
13
13
|
"zoomOut": "Zoom out",
|
|
14
14
|
"zoomIn": "Zoom in",
|
|
@@ -108,7 +108,7 @@
|
|
|
108
108
|
"qualityscore_doc_1": "Panoramax offers a Quality Score for each picture. It allows easy map filtering and comprehensive display of high-quality pictures availability.",
|
|
109
109
|
"qualityscore_doc_2": "The grade is shown to users as a A/B/C/D/E score (A is the best, E the worst), and shown graphically through this scale:",
|
|
110
110
|
"qualityscore_doc_3": "It is computed based on GPS precision and picture resolution. A professional system will have an A-rating, a 360° action camera will have a B-rating, and a smartphone will be C/D/E-rated.",
|
|
111
|
-
"qualityscore_doc_link": "
|
|
111
|
+
"qualityscore_doc_link": "Know more about the Quality Score",
|
|
112
112
|
"map_background": "Map background",
|
|
113
113
|
"map_background_aerial": "Aerial",
|
|
114
114
|
"map_background_streets": "Streets",
|
|
@@ -179,6 +179,8 @@
|
|
|
179
179
|
"loading": "Loading…",
|
|
180
180
|
"thumbnail": "Thumbnail of hovered picture",
|
|
181
181
|
"not_public": "Not publicly visible",
|
|
182
|
-
"slow_loading": "Map is slow to load and could appear broken"
|
|
182
|
+
"slow_loading": "Map is slow to load and could appear broken",
|
|
183
|
+
"map_data": "Map data:",
|
|
184
|
+
"more_panoramax": "Discover more about Panoramax"
|
|
183
185
|
}
|
|
184
186
|
}
|
package/src/translations/eo.json
CHANGED
package/src/translations/es.json
CHANGED
package/src/translations/fr.json
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"GeolocateControl.FindMyLocation": "Afficher ma position",
|
|
9
9
|
"GeolocateControl.LocationNotAvailable": "GPS non-disponible"
|
|
10
10
|
},
|
|
11
|
-
"
|
|
11
|
+
"pnx": {
|
|
12
12
|
"zoom": "Zoom",
|
|
13
13
|
"zoomOut": "Dézoomer",
|
|
14
14
|
"zoomIn": "Zoomer",
|
|
@@ -107,7 +107,7 @@
|
|
|
107
107
|
"qualityscore_doc_1": "Panoramax propose un Score de Qualité pour chacune de ses photos. Cela facilite le filtre et la recherche de photos de bonne qualité sur la carte.",
|
|
108
108
|
"qualityscore_doc_2": "Le score est affiché sous la forme d'une lettre A/B/C/D/E (A étant le meilleur, E le moins bon), et visualisable grâce à cette échelle :",
|
|
109
109
|
"qualityscore_doc_3": "Il est calculé en fonction de la précision du GPS ainsi que la résolution de la photo. Un matériel professionnel aura une note de A, une caméra sportive 360° une note de B, et un smartphone une note de C à E.",
|
|
110
|
-
"qualityscore_doc_link": "
|
|
110
|
+
"qualityscore_doc_link": "En savoir plus sur le Score Qualité",
|
|
111
111
|
"filter_zoom_in": "Zoomez plus pour voir ce filtre",
|
|
112
112
|
"map_background": "Fond de carte",
|
|
113
113
|
"map_background_aerial": "Satellite",
|
|
@@ -179,6 +179,8 @@
|
|
|
179
179
|
"loading": "Chargement…",
|
|
180
180
|
"thumbnail": "Miniature de la photo survolée",
|
|
181
181
|
"not_public": "Masqué au public",
|
|
182
|
-
"slow_loading": "La carte est longue à charger et pourrait apparaître cassée"
|
|
182
|
+
"slow_loading": "La carte est longue à charger et pourrait apparaître cassée",
|
|
183
|
+
"map_data": "Données cartographiques :",
|
|
184
|
+
"more_panoramax": "En savoir plus sur Panoramax"
|
|
183
185
|
}
|
|
184
186
|
}
|
package/src/translations/hu.json
CHANGED
package/src/translations/it.json
CHANGED
package/src/translations/ja.json
CHANGED
package/src/translations/nl.json
CHANGED
package/src/translations/pl.json
CHANGED
package/src/translations/sv.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"loadError": "Panoramat kan inte laddas",
|
|
5
5
|
"ctrlZoom": "Använd ctrl + scroll för att zooma in på bilden"
|
|
6
6
|
},
|
|
7
|
-
"
|
|
7
|
+
"pnx": {
|
|
8
8
|
"moveUp": "Flytta upp",
|
|
9
9
|
"zoom": "Zoom",
|
|
10
10
|
"zoomOut": "Zooma ut",
|
|
@@ -140,13 +140,43 @@
|
|
|
140
140
|
"error_pic": "Begärd bild hittades inte",
|
|
141
141
|
"qualityscore_doc_3": "Det räknas ut baserat på GPS precision och bildens upplösning. Ett profesionellt system kommer ha A-kvalité, en 360° actionkamera kommer ha B-kvalité och en telefon kommer ha C/D/E-kvalité.",
|
|
142
142
|
"qualityscore_doc_1": "Panoramax erbjuder en Kvalitetspoäng för varje bild. Det möjligör enkel kartfiltrering och en omfattande uppvisning av tillgänligheten av bilder av hög kvalitet.",
|
|
143
|
-
"metadata_camera_focal_length": "Brännvidd"
|
|
143
|
+
"metadata_camera_focal_length": "Brännvidd",
|
|
144
|
+
"picture_flat": "Klassisk",
|
|
145
|
+
"map_background": "Kartbakgrund",
|
|
146
|
+
"map_background_aerial": "Sattelit",
|
|
147
|
+
"map_background_streets": "Gator",
|
|
148
|
+
"map_theme": "Karttema",
|
|
149
|
+
"map_theme_age": "Fotodatum",
|
|
150
|
+
"report_nature_label": "Typ av problem",
|
|
151
|
+
"report_nature": {
|
|
152
|
+
"": "Välj typen av problem…",
|
|
153
|
+
"blur_missing": "En persons ansikte eller en registreringsplåt är synlig",
|
|
154
|
+
"blur_excess": "Ett objekt som inte behöver suddas är suddad",
|
|
155
|
+
"inappropriate": "Bilden är olämplig(orelaterat, nakenhet...)",
|
|
156
|
+
"privacy": "En privat väg eller fastighet är synlig",
|
|
157
|
+
"picture_low_quality": "Bilden är av mycket dålig kvalitet",
|
|
158
|
+
"mislocated": "Bilden är placerat dålig på kartan",
|
|
159
|
+
"copyright": "Bilden inkränker på upphovsrätt",
|
|
160
|
+
"other": "Något annat typ av problem"
|
|
161
|
+
},
|
|
162
|
+
"report_whole_sequence": "Detta gäller hela sekvensen",
|
|
163
|
+
"report_details": "Ytterligare detaljer",
|
|
164
|
+
"report_details_placeholder": "Valfritt, kan du lägga till information om problemet och varför det är ett problem",
|
|
165
|
+
"report_email": "Din e-post",
|
|
166
|
+
"report_email_placeholder": "Valfri",
|
|
167
|
+
"report_submit": "Skicka",
|
|
168
|
+
"report_wait": "Skickar rapport …",
|
|
169
|
+
"report_success": "Rapporten har skickats. Det kommer att ses över så snart som möjligt.",
|
|
170
|
+
"report_failure": "Ett fel uppstod när rapporten skapades: {e}. Försök igen senare."
|
|
144
171
|
},
|
|
145
172
|
"maplibre": {
|
|
146
173
|
"GeolocateControl.FindMyLocation": "Hitta min postion",
|
|
147
174
|
"GeolocateControl.LocationNotAvailable": "Plats inte tillgänlig"
|
|
148
175
|
},
|
|
149
176
|
"map": {
|
|
150
|
-
"loading": "Laddar…"
|
|
177
|
+
"loading": "Laddar…",
|
|
178
|
+
"thumbnail": "Miniatyrbild av rörd bild",
|
|
179
|
+
"not_public": "Inte offentligt synligt",
|
|
180
|
+
"slow_loading": "Kartan laddas långsamt och kan verka trasig"
|
|
151
181
|
}
|
|
152
182
|
}
|