Skip to content

Malformed GeolocateControl Error #13576

@spencermize

Description

@spencermize

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

Relevant log output

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions