Skip to content

Enhancement Request: keepCurrentZoomLevel within set range #246

@barryhunter

Description

@barryhunter

keepCurrentZoomLevel in general is a nice option.

But think it would be even better to have a middle ground. Eg only keepCurrentZoomLevel if the current zoom is between say 13 and 18.
... so if below 13 (zoomed out) would zoom in.
... and if zoomed in beyond 18 it could zoom out (assuming maxZoom was set to say 16)

This would give best of both worlds? If the user is zoomed way out (say country level) then it would zoom in to show the proper position. But if they've already set to a nice midscale, it would keep it, rather than switching to the exact option the developer choose.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions