Skip to content
This repository was archived by the owner on Sep 20, 2019. It is now read-only.
This repository was archived by the owner on Sep 20, 2019. It is now read-only.

Fitbounds and markercluster zoom issue #355

Description

@closca

Hello,
I am having problems with fitBounds() and markercluster click.
Basically, my map container width is dynamic to screen size (I am using flex). I saw that the map is constructed based on 256x256 tiles and the map size is tied to that. If my container has 550px width the map is actually 256x3 = 768. this results that the map has a hidden area of 218 px.
So, when I use fitBounds, is doing it related to the map size and not the container size.

How can I make the map to be responsive?

Thank you.

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