From 834b77f1a80316fbbc6a0ea04be675c9c2467388 Mon Sep 17 00:00:00 2001 From: "arnaud.morvan@camptocamp.com" Date: Thu, 5 Dec 2024 16:45:05 +0100 Subject: [PATCH] Use geometry field instead of computed_geometry in Mapillary --- src/streetview/MapillaryService.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/streetview/MapillaryService.js b/src/streetview/MapillaryService.js index 6e0931367fa1..b02af3be2afd 100644 --- a/src/streetview/MapillaryService.js +++ b/src/streetview/MapillaryService.js @@ -91,7 +91,7 @@ export default class MapillaryService extends StreetviewService { * @param {import('mapillary-js/src/viewer/events/ViewerImageEvent').ViewerImageEvent} evt */ this.mapillaryEventHandler_ = (evt) => { - const coordinates = evt.image.computedLngLat; + const coordinates = evt.image.originalLngLat; const newCoordinates = this.fromLonLat_([coordinates.lng, coordinates.lat]); super.panoramaPositionChange(newCoordinates); this.mly.resize();