Skip to content

Commit

Permalink
Use geometry field instead of computed_geometry in Mapillary
Browse files Browse the repository at this point in the history
  • Loading branch information
arnaud-morvan committed Dec 6, 2024
1 parent b6b1574 commit 834b77f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/streetview/MapillaryService.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 834b77f

Please sign in to comment.