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 5, 2024
1 parent d9e27ad commit 15d8616
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 @@ -126,7 +126,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 15d8616

Please sign in to comment.