Skip to content

fitBounds problem with minZoom #6839

@hheexx

Description

@hheexx

We have a problem with combination of fitBounds and minZoom in Chrome so that for some fitBounds map flies far away and do crazy stuff. Some time comes back sometimes not.

Here is fiddle:
https://jsfiddle.net/eLf5h8x2/

It has 2 calls to fitBounds in setTimeouts few seconds apart. Bounds are very close geographically, map should do a small move. Instead it does some crazy jumps around.
If you remove minZoom: 10, everything works as expected.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions