We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Setting movingMethod to jumpTo does not disable animations.
movingMethod
jumpTo
<mgl-map [style]="'mapbox://styles/mapbox/streets-v9'" [zoom]="[9]" [center]="[-74.50, 40]" (load)="map = $event" movingMethod="jumpTo" ></mgl-map>
The text was updated successfully, but these errors were encountered:
Ah, this is really a shortcoming of the Mapbox GL JS API.
Animations for fitBounds must be defined via fitBoundOptions. There's an undocumented duration property that you can use to disable animations.
<mgl-map [fitBounds]="[-124.763068, 45.543541, -116.915989, 49.002494]" [fitBoundsOptions]="{ duration: 0 }" ></mgl-map>
Sorry, something went wrong.
@mloffer Thanks for sharing your findings!
No branches or pull requests
Setting
movingMethod
tojumpTo
does not disable animations.The text was updated successfully, but these errors were encountered: