Skip to content

Optionally set max zoom level in zoomToVectors() and zoomToLayer() methods #169

Description

@mstenta

When using the instance.zoomToVectors() and instance.zoomToLayer() methods, there is currently no control over the maximum zoom level. When the vector/layer contains a single point this results in a zoom that is far too close to be useful, forcing the user to manually zoom out to see where they are. This isn't as much of an issue with line/polygon geometries, which are more common.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions