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 5f3dd06 commit c668b00
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 c668b00

Please sign in to comment.