-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Open
Description
mapbox-gl-js version
v3.15.0 and v3.16.0
Browser and version
Chrome 141
Expected behavior
In 3.14.0, the geolocate error shape is this:
{
PERMISSION_DENIED: 1
POSITION_UNAVAILABLE: 2
TIMEOUT:3
code: 1
message:"User denied Geolocation"
target: GeolocateControl {options: {…}, _onSuccess: ƒ, _onError: ƒ, _onZoom: ƒ, _finish: ƒ, …}
type: "error"
}
and starting in 3.15/16, it changed to this:
{
target: GeolocateControl {options: {…}, _onSuccess: ƒ, _onError: ƒ, _onZoom: ƒ, _finish: ƒ, …}
type: "error"
}
I believe the error in 3.14 is the correct one, and 3.15/16 are actually broken.
Actual behavior
No response
Link to the demonstration
No response
Steps to trigger the unexpected behavior
No response