Skip to content

MaplibreGeocoderOptions needs a maxZoom option #181

@mvl22

Description

@mvl22

On selecting a result, the map will move to the supplied bbox by default if present.

However, sometimes the bbox can be very small, e.g. a part of a street.

It would be useful if there was a maxZoom option to prevent flying in extremely closely. For instance, in the case of a small street, being flown into zoom 19 is unhelpful because there is no visual context as to where that street is.

Although there is a zoom option, this is essentially a brute-force option, resulting a specific zoom that will be the same for e.g. an entire country vs a minor street.

While the map as a whole can have maxZoom, that often needs to be a different setting - a user may want to zoom closely into the map to examine a section, but for the purposes of a geocoding result, such closeness is by contrast not helpful.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions