@panoramax/web-viewer 5.0.0-develop-d26305dd → 5.0.0-develop-be5ba1a7
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/build/cjs/index.js +1 -1
- package/build/cjs/index_photoviewer.js +1 -1
- package/build/esm/components/core/Basic.js +1 -1
- package/build/esm/translations/el.json +92 -1
- package/package.json +1 -1
- package/build/bundle.cjs +0 -3399
- package/build/bundle.cjs.map +0 -1
- package/build/bundle_photoviewer.cjs +0 -2510
- package/build/bundle_photoviewer.cjs.map +0 -1
- package/build/components/core/Basic.css +0 -56
- package/build/components/core/Basic.js +0 -378
- package/build/components/core/CoverageMap.css +0 -10
- package/build/components/core/CoverageMap.js +0 -169
- package/build/components/core/Editor.css +0 -33
- package/build/components/core/Editor.js +0 -398
- package/build/components/core/PhotoViewer.css +0 -70
- package/build/components/core/PhotoViewer.js +0 -650
- package/build/components/core/Viewer.css +0 -130
- package/build/components/core/Viewer.js +0 -711
- package/build/components/core/index.js +0 -10
- package/build/components/index.js +0 -11
- package/build/components/index_photoviewer.js +0 -6
- package/build/components/layout/BottomDrawer.js +0 -258
- package/build/components/layout/CorneredGrid.js +0 -143
- package/build/components/layout/Mini.js +0 -121
- package/build/components/layout/Tabs.js +0 -140
- package/build/components/layout/index.js +0 -9
- package/build/components/menus/LocationPrecisionDoc.js +0 -42
- package/build/components/menus/MapBackground.js +0 -110
- package/build/components/menus/MapFilters.js +0 -567
- package/build/components/menus/MapLayers.js +0 -238
- package/build/components/menus/MapLegend.js +0 -68
- package/build/components/menus/MiniPictureLegend.js +0 -73
- package/build/components/menus/PictureLegend.js +0 -379
- package/build/components/menus/PictureMetadata.js +0 -380
- package/build/components/menus/PlayerOptions.js +0 -93
- package/build/components/menus/QualityScoreDoc.js +0 -42
- package/build/components/menus/ReportForm.js +0 -132
- package/build/components/menus/SemanticsDoc.js +0 -38
- package/build/components/menus/SemanticsDownload.js +0 -33
- package/build/components/menus/SemanticsFilters.js +0 -153
- package/build/components/menus/SemanticsList.js +0 -413
- package/build/components/menus/SemanticsMetadata.js +0 -368
- package/build/components/menus/Share.js +0 -105
- package/build/components/menus/index.js +0 -22
- package/build/components/menus/index_photoviewer.js +0 -11
- package/build/components/styles.js +0 -557
- package/build/components/ui/AnnotationsSwitch.js +0 -159
- package/build/components/ui/Button.js +0 -77
- package/build/components/ui/ButtonGroup.css +0 -59
- package/build/components/ui/ButtonGroup.js +0 -69
- package/build/components/ui/CopyButton.js +0 -110
- package/build/components/ui/Grade.js +0 -54
- package/build/components/ui/GradeFilter.js +0 -122
- package/build/components/ui/IconSwitch.js +0 -193
- package/build/components/ui/LinkButton.js +0 -67
- package/build/components/ui/ListGroup.js +0 -66
- package/build/components/ui/ListItem.js +0 -90
- package/build/components/ui/Loader.js +0 -203
- package/build/components/ui/Map.css +0 -63
- package/build/components/ui/Map.js +0 -853
- package/build/components/ui/MapMore.js +0 -175
- package/build/components/ui/Photo.css +0 -50
- package/build/components/ui/Photo.js +0 -1502
- package/build/components/ui/Popup.js +0 -145
- package/build/components/ui/ProgressBar.js +0 -104
- package/build/components/ui/QualityScore.js +0 -147
- package/build/components/ui/SearchBar.js +0 -374
- package/build/components/ui/SemanticsEditor.js +0 -191
- package/build/components/ui/SemanticsTable.js +0 -88
- package/build/components/ui/Switch.js +0 -139
- package/build/components/ui/TogglableGroup.js +0 -157
- package/build/components/ui/index.js +0 -29
- package/build/components/ui/index_photoviewer.js +0 -21
- package/build/components/ui/widgets/CopyCoordinates.js +0 -75
- package/build/components/ui/widgets/GeoSearch.css +0 -21
- package/build/components/ui/widgets/GeoSearch.js +0 -150
- package/build/components/ui/widgets/Legend.js +0 -190
- package/build/components/ui/widgets/LevelSelect.css +0 -51
- package/build/components/ui/widgets/LevelSelect.js +0 -143
- package/build/components/ui/widgets/MapFiltersButton.js +0 -114
- package/build/components/ui/widgets/MapLayersButton.js +0 -79
- package/build/components/ui/widgets/OSMEditors.js +0 -155
- package/build/components/ui/widgets/PictureLegendActions.js +0 -99
- package/build/components/ui/widgets/Player.css +0 -7
- package/build/components/ui/widgets/Player.js +0 -154
- package/build/components/ui/widgets/SemanticsFiltersButton.js +0 -65
- package/build/components/ui/widgets/Zoom.js +0 -84
- package/build/components/ui/widgets/index.js +0 -16
- package/build/components/ui/widgets/index_photoviewer.js +0 -7
- package/build/img/arrow_360.svg +0 -14
- package/build/img/arrow_flat.svg +0 -11
- package/build/img/arrow_triangle.svg +0 -9
- package/build/img/arrow_turn.svg +0 -8
- package/build/img/bg_aerial.jpg +0 -0
- package/build/img/bg_streets.jpg +0 -0
- package/build/img/loader_base.jpg +0 -0
- package/build/img/logo_dead.svg +0 -91
- package/build/img/marker.svg +0 -17
- package/build/img/marker_blue.svg +0 -20
- package/build/img/osm.svg +0 -49
- package/build/img/panoramax.svg +0 -13
- package/build/img/switch_big.svg +0 -54
- package/build/img/switch_mini.svg +0 -48
- package/build/img/wd.svg +0 -1
- package/build/index_photoviewer.js +0 -4
- package/build/package.json +0 -148
- package/build/servers.js +0 -14
- package/build/translations/ar.json +0 -1
- package/build/translations/be.json +0 -257
- package/build/translations/br.json +0 -81
- package/build/translations/cy.json +0 -117
- package/build/translations/da.json +0 -300
- package/build/translations/de.json +0 -309
- package/build/translations/en.json +0 -294
- package/build/translations/eo.json +0 -235
- package/build/translations/es.json +0 -292
- package/build/translations/fi.json +0 -1
- package/build/translations/fr.json +0 -294
- package/build/translations/hr.json +0 -294
- package/build/translations/hu.json +0 -294
- package/build/translations/it.json +0 -306
- package/build/translations/ja.json +0 -182
- package/build/translations/ko.json +0 -1
- package/build/translations/nl.json +0 -305
- package/build/translations/nn.json +0 -1
- package/build/translations/pl.json +0 -169
- package/build/translations/pt.json +0 -296
- package/build/translations/pt_BR.json +0 -304
- package/build/translations/sv.json +0 -182
- package/build/translations/ti.json +0 -9
- package/build/translations/tr.json +0 -297
- package/build/translations/uk.json +0 -268
- package/build/translations/zh_Hant.json +0 -309
- package/build/utils/API.js +0 -928
- package/build/utils/InitParameters.js +0 -521
- package/build/utils/MapStyleComposer.js +0 -889
- package/build/utils/PanoraMapProtocol.js +0 -49
- package/build/utils/PhotoAdapter.js +0 -49
- package/build/utils/PresetsManager.js +0 -148
- package/build/utils/SemanticsMapProtocol.js +0 -144
- package/build/utils/URLHandler.js +0 -426
- package/build/utils/geocoder.js +0 -203
- package/build/utils/i18n.js +0 -128
- package/build/utils/index.js +0 -17
- package/build/utils/index_photoviewer.js +0 -14
- package/build/utils/indoor.js +0 -200
- package/build/utils/map.js +0 -788
- package/build/utils/picture.js +0 -507
- package/build/utils/semantics.js +0 -321
- package/build/utils/services.js +0 -148
- package/build/utils/utils.js +0 -433
- package/build/utils/widgets.js +0 -110
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { LitElement, html } from "lit";
|
|
2
|
-
import { docPopup, faSvg, titles } from "../styles.js";
|
|
3
|
-
import { fa } from "../../utils/widgets.js";
|
|
4
|
-
import { faExternalLinkAlt, faMapMarkerAlt } from "@fortawesome/free-solid-svg-icons";
|
|
5
|
-
import { QUALITYSCORE_GPS_VALUES } from "../../utils/utils.js";
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* Location Precision Doc displays a synthetic summary of how Location Precision filter and map theme works.
|
|
9
|
-
* @class Panoramax.components.menus.LocationPrecisionDoc
|
|
10
|
-
* @element pnx-location-precision-doc
|
|
11
|
-
* @extends [lit.LitElement](https://lit.dev/docs/api/LitElement/)
|
|
12
|
-
* @example
|
|
13
|
-
* ```html
|
|
14
|
-
* <pnx-location-precision-doc ._t=${viewer._t} />
|
|
15
|
-
* ```
|
|
16
|
-
*/
|
|
17
|
-
export default class LocationPrecisionDoc extends LitElement {
|
|
18
|
-
static styles = [ titles, faSvg, docPopup ];
|
|
19
|
-
|
|
20
|
-
render() {
|
|
21
|
-
return html`
|
|
22
|
-
<h4>${fa(faMapMarkerAlt)} ${this._t?.pnx.filter_gps_precision}</h4>
|
|
23
|
-
<p>${this._t?.pnx.filter_gps_precision_help_1}</p>
|
|
24
|
-
<p>${this._t?.pnx.filter_gps_precision_help_2}</p>
|
|
25
|
-
<pnx-grade-filter grade=""></pnx-grade-filter>
|
|
26
|
-
<p>${this._t?.pnx.filter_gps_precision_help_3
|
|
27
|
-
.replace("{p5}", QUALITYSCORE_GPS_VALUES[1])
|
|
28
|
-
.replace("{p1}", QUALITYSCORE_GPS_VALUES[7])
|
|
29
|
-
.replace(/\.01/g, "")
|
|
30
|
-
}</p>
|
|
31
|
-
<p>${this._t?.pnx.filter_gps_precision_help_4}</p>
|
|
32
|
-
<pnx-link-button
|
|
33
|
-
href="https://docs.panoramax.fr/pictures-metadata/quality_score/#gps-position-accuracy"
|
|
34
|
-
target="_blank"
|
|
35
|
-
kind="outline"
|
|
36
|
-
style="width: 100%"
|
|
37
|
-
>${fa(faExternalLinkAlt)} ${this._t?.pnx.popup_details_link}</pnx-link-button>
|
|
38
|
-
`;
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
customElements.define("pnx-location-precision-doc", LocationPrecisionDoc);
|
|
@@ -1,110 +0,0 @@
|
|
|
1
|
-
import { LitElement, css, html } from "lit";
|
|
2
|
-
import { onceParentAvailable } from "../../utils/widgets.js";
|
|
3
|
-
const BgStreets = new URL("../../img/bg_streets.jpg", import.meta.url).href;
|
|
4
|
-
const BgAerial = new URL("../../img/bg_aerial.jpg", import.meta.url).href;
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* Map Background menu allows user to select background.
|
|
8
|
-
* @class Panoramax.components.menus.MapBackground
|
|
9
|
-
* @element pnx-map-background
|
|
10
|
-
* @extends [lit.LitElement](https://lit.dev/docs/api/LitElement/)
|
|
11
|
-
* @example
|
|
12
|
-
* ```html
|
|
13
|
-
* <pnx-map-background size="sm" _parent=${viewer} />
|
|
14
|
-
* ```
|
|
15
|
-
*/
|
|
16
|
-
export default class MapBackground extends LitElement {
|
|
17
|
-
/** @private */
|
|
18
|
-
static styles = [ css`
|
|
19
|
-
:host {
|
|
20
|
-
justify-content: space-evenly;
|
|
21
|
-
box-sizing: border-box;
|
|
22
|
-
display: flex;
|
|
23
|
-
gap: 10px;
|
|
24
|
-
}
|
|
25
|
-
input { display: none; }
|
|
26
|
-
label { cursor: pointer; }
|
|
27
|
-
|
|
28
|
-
img {
|
|
29
|
-
width: 40px;
|
|
30
|
-
border-radius: 5px;
|
|
31
|
-
vertical-align: middle;
|
|
32
|
-
margin-right: 5px;
|
|
33
|
-
border: 2px solid var(--widget-bg);
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
img.sm {
|
|
37
|
-
width: 32px;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
input:checked + label img {
|
|
41
|
-
outline: 3px solid var(--widget-border-btn);
|
|
42
|
-
}
|
|
43
|
-
` ];
|
|
44
|
-
|
|
45
|
-
/**
|
|
46
|
-
* Component properties.
|
|
47
|
-
* @memberof Panoramax.components.menus.MapBackground#
|
|
48
|
-
* @type {Object}
|
|
49
|
-
* @property {string} [size=md] The size of the button (sm, md)
|
|
50
|
-
*/
|
|
51
|
-
static properties = {
|
|
52
|
-
bg: {state: true},
|
|
53
|
-
size: {type: String},
|
|
54
|
-
};
|
|
55
|
-
|
|
56
|
-
constructor() {
|
|
57
|
-
super();
|
|
58
|
-
this.size = "md";
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
/** @private */
|
|
62
|
-
connectedCallback() {
|
|
63
|
-
super.connectedCallback();
|
|
64
|
-
|
|
65
|
-
onceParentAvailable(this).then(() => {
|
|
66
|
-
this._parent.mapStyleComposer?.addEventListener("basemap-changed", e => {
|
|
67
|
-
this.bg = e.detail.basemap;
|
|
68
|
-
});
|
|
69
|
-
this.bg = this._parent.mapStyleComposer?.basemap;
|
|
70
|
-
});
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
/** @private */
|
|
74
|
-
_onBgSelect(e) {
|
|
75
|
-
this.bg = e.target.value;
|
|
76
|
-
this._parent?.mapStyleComposer?.switchBasemap(this.bg);
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
/** @private */
|
|
80
|
-
render() {
|
|
81
|
-
return html`
|
|
82
|
-
<input
|
|
83
|
-
type="radio"
|
|
84
|
-
id="bg-streets"
|
|
85
|
-
name="bg"
|
|
86
|
-
value="streets"
|
|
87
|
-
@change=${this._onBgSelect}
|
|
88
|
-
.checked=${this.bg === "streets"}
|
|
89
|
-
/>
|
|
90
|
-
<label for="bg-streets">
|
|
91
|
-
<img src=${BgStreets} class=${this.size} alt="" />
|
|
92
|
-
${this._parent?._t.pnx.map_background_streets}
|
|
93
|
-
</label>
|
|
94
|
-
<input
|
|
95
|
-
type="radio"
|
|
96
|
-
id="bg-aerial"
|
|
97
|
-
name="bg"
|
|
98
|
-
value="aerial"
|
|
99
|
-
@change=${this._onBgSelect}
|
|
100
|
-
.checked=${this.bg === "aerial"}
|
|
101
|
-
/>
|
|
102
|
-
<label for="bg-aerial">
|
|
103
|
-
<img src=${BgAerial} class=${this.size} alt="" />
|
|
104
|
-
${this._parent?._t.pnx.map_background_aerial}
|
|
105
|
-
</label>
|
|
106
|
-
`;
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
customElements.define("pnx-map-background", MapBackground);
|