@panoramax/web-viewer 4.0.1-develop-c7df5a60 → 4.0.1-develop-955ebafc
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
|
@@ -145,6 +145,9 @@ export default class PictureLegend extends LitElement {
|
|
|
145
145
|
this._parent.psv.addEventListener("picture-loaded", () => {
|
|
146
146
|
this._onPicChange(this._parent.psv.getPictureMetadata());
|
|
147
147
|
});
|
|
148
|
+
this._parent.psv.addEventListener("sequence-stopped", () => {
|
|
149
|
+
this._onPicChange(this._parent.psv.getPictureMetadata());
|
|
150
|
+
});
|
|
148
151
|
});
|
|
149
152
|
}
|
|
150
153
|
|
|
@@ -154,12 +157,12 @@ export default class PictureLegend extends LitElement {
|
|
|
154
157
|
this._caption = picMeta?.caption;
|
|
155
158
|
|
|
156
159
|
if(picMeta) {
|
|
157
|
-
const coordsHash = `${picMeta.gps[0]}/${picMeta.gps[1]}`;
|
|
160
|
+
const coordsHash = `${picMeta.gps[0].toFixed(4)}/${picMeta.gps[1].toFixed(4)}`;
|
|
158
161
|
if(this._prevSearches[coordsHash]) {
|
|
159
162
|
this._addr = this._prevSearches[coordsHash];
|
|
160
163
|
}
|
|
161
|
-
else {
|
|
162
|
-
this.
|
|
164
|
+
else if(!this._parent.psv._sequencePlaying) {
|
|
165
|
+
this._addr = "";
|
|
163
166
|
this._addrTimer1 = setTimeout(() => {
|
|
164
167
|
reverseGeocodingNominatim(picMeta.gps[1], picMeta.gps[0])
|
|
165
168
|
.then(addr => {
|
|
@@ -167,7 +170,7 @@ export default class PictureLegend extends LitElement {
|
|
|
167
170
|
this._addr = addr;
|
|
168
171
|
this._prevSearches[coordsHash] = addr;
|
|
169
172
|
});
|
|
170
|
-
},
|
|
173
|
+
}, 500);
|
|
171
174
|
}
|
|
172
175
|
}
|
|
173
176
|
else {
|
|
@@ -266,7 +266,9 @@ export default class Photo extends PSViewer {
|
|
|
266
266
|
}
|
|
267
267
|
// Different sequence -> Point to center + no animation
|
|
268
268
|
else {
|
|
269
|
-
nodeTransition = forwardNoAnim
|
|
269
|
+
nodeTransition = Object.assign(forwardNoAnim, {
|
|
270
|
+
rotateTo: { pitch: 0, yaw: 0 },
|
|
271
|
+
});
|
|
270
272
|
}
|
|
271
273
|
}
|
|
272
274
|
|