Skip to content

Commit 834b77f

Browse files
committed
Use geometry field instead of computed_geometry in Mapillary
1 parent b6b1574 commit 834b77f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/streetview/MapillaryService.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ export default class MapillaryService extends StreetviewService {
9191
* @param {import('mapillary-js/src/viewer/events/ViewerImageEvent').ViewerImageEvent} evt
9292
*/
9393
this.mapillaryEventHandler_ = (evt) => {
94-
const coordinates = evt.image.computedLngLat;
94+
const coordinates = evt.image.originalLngLat;
9595
const newCoordinates = this.fromLonLat_([coordinates.lng, coordinates.lat]);
9696
super.panoramaPositionChange(newCoordinates);
9797
this.mly.resize();

0 commit comments

Comments
 (0)