Reputation: 31
Using Mapbox GL JS ver. 1.10.1
I've already got the map working with everything, but when I click the Geolocate Control button there's no animation. It just jumps to a point so I'd like to know how to add that animation. The mapbox documentation shows the behavior I want but I can't find what I might've missed to make the animation work.
Here's what my code looks like:
var geoctrl = new mapboxgl.GeolocateControl({
positionOptions: {
enableHighAccuracy: true
},
trackUserLocation: true
});
this.map.addControl(geoctrl);
I've tried using the exact code in the documentation, removing parameters and setting the parameters to false and there's still no animation.
Any help would be appreciated. Thanks in advance!
Upvotes: 1
Views: 235
Reputation: 31
Finally fixed this issue. Turns out it was a windows setting for enabling animations on windows. I'm using rdp so turning off animations helped to improve the connection.
See link for more info
Upvotes: 2