You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The option watchPosition has been replaced with trackUserLocation
The camera operation has changed from jumpTo (not animated) to fitBounds (animated). An effect of this is the map pitch is no longer reset, although the bearing is still reset to 0.
The accuracy of the geolocation provided by the device is used to set the view (previously it was fixed at zoom level 17). The maxZoom can be controlled via the new fitBoundsOptions option (defaults to 15).
Improve line label legibility in pitched views #4781
Improve line label legibility on curved lines #4853
Add user location tracking capability to GeolocateControl#4479, @andrewharvey
New option showUserLocation to draw a "dot" as a Marker on the map at the user's location
An active lock and background state are introduced with trackUserLocation. When in active lock the camera will update to follow the user location, however if the camera is changed by the API or UI then the control will enter the background state where it won't update the camera to follow the user location.
New option fitBoundsOptions to control the camera operation
New trackuserlocationstart and trackuserlocationend events
New LngLat.toBounds method to extend a point location by a given radius to a LngLatBounds object