@panoramax/web-viewer 3.1.0-develop-6577bde8 → 3.1.0-develop-1eb39a9b
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 +2 -1
- package/build/index.css +5 -5
- package/build/index.css.map +1 -1
- package/build/index.js +6 -6
- package/build/index.js.map +1 -1
- package/package.json +6 -6
- package/src/viewer/Widgets.js +8 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@panoramax/web-viewer",
|
|
3
|
-
"version": "3.1.0-develop-
|
|
3
|
+
"version": "3.1.0-develop-1eb39a9b",
|
|
4
4
|
"description": "Panoramax web viewer for geolocated pictures",
|
|
5
5
|
"main": "build/index.js",
|
|
6
6
|
"author": "Panoramax team",
|
|
@@ -90,11 +90,11 @@
|
|
|
90
90
|
"dependencies": {
|
|
91
91
|
"@fortawesome/fontawesome-svg-core": "^6.4.0",
|
|
92
92
|
"@fortawesome/free-solid-svg-icons": "^6.4.0",
|
|
93
|
-
"@photo-sphere-viewer/core": "5.
|
|
94
|
-
"@photo-sphere-viewer/equirectangular-tiles-adapter": "5.
|
|
95
|
-
"@photo-sphere-viewer/gallery-plugin": "5.
|
|
96
|
-
"@photo-sphere-viewer/markers-plugin": "5.
|
|
97
|
-
"@photo-sphere-viewer/virtual-tour-plugin": "5.
|
|
93
|
+
"@photo-sphere-viewer/core": "5.11.0-beta.1",
|
|
94
|
+
"@photo-sphere-viewer/equirectangular-tiles-adapter": "5.11.0-beta.1",
|
|
95
|
+
"@photo-sphere-viewer/gallery-plugin": "5.11.0-beta.1",
|
|
96
|
+
"@photo-sphere-viewer/markers-plugin": "5.11.0-beta.1",
|
|
97
|
+
"@photo-sphere-viewer/virtual-tour-plugin": "5.11.0-beta.1",
|
|
98
98
|
"documentation": "^14.0.1",
|
|
99
99
|
"maplibre-gl": "^4.7.1",
|
|
100
100
|
"pmtiles": "^3.2.0"
|
package/src/viewer/Widgets.js
CHANGED
|
@@ -723,6 +723,8 @@ export default class Widgets {
|
|
|
723
723
|
const overridenGeocoder = query => {
|
|
724
724
|
const rgxCoords = /([-+]?\d{1,2}\.\d+),\s*([-+]?\d{1,3}\.\d+)/;
|
|
725
725
|
const coordsMatch = query.match(rgxCoords);
|
|
726
|
+
const rgxUuid = /^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/;
|
|
727
|
+
const uuidMatch = query.match(rgxUuid);
|
|
726
728
|
|
|
727
729
|
if(coordsMatch) {
|
|
728
730
|
const lat = parseFloat(coordsMatch[1]);
|
|
@@ -732,7 +734,12 @@ export default class Widgets {
|
|
|
732
734
|
zoom: 16,
|
|
733
735
|
});
|
|
734
736
|
return Promise.resolve(true);
|
|
735
|
-
}
|
|
737
|
+
}
|
|
738
|
+
else if(uuidMatch) {
|
|
739
|
+
this._viewer.select(null, query);
|
|
740
|
+
return Promise.resolve(true);
|
|
741
|
+
}
|
|
742
|
+
else {
|
|
736
743
|
return this._viewer.map.geocoder({
|
|
737
744
|
query,
|
|
738
745
|
limit: 3,
|