Open szanuje opened 4 years ago
+1 same for me
Same
+1
+1
Hello this piece of code gets invoked, not taking into account the flyTo option https://github.com/mapbox/mapbox-gl-directions/blob/13669074cf11c6899c54fc1b77af24b89455cb42/src/controls/inputs.js#L50
it is also the reason https://github.com/mapbox/mapbox-gl-directions/blob/13669074cf11c6899c54fc1b77af24b89455cb42/src/controls/inputs.js#L52 the map gets centred on origin/destination map click.
While it may be an unorthodox solution, wrapping https://github.com/mapbox/mapbox-gl-directions/blob/13669074cf11c6899c54fc1b77af24b89455cb42/src/controls/inputs.js#L41-L53
under
if (this.store.getState().flyTo)
fixes the unwanted interaction
Same for me
Same for me
I can't turn off map moving when I set origin and destination. I tried to set
flyTo: false
, but it doesn't work and map still moves to the place between point A and B. How I can just generate route, without moving the map?