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

Fitbounds and markercluster zoom issue #355

Open
closca opened this issue Feb 3, 2018 · 0 comments
Open

Fitbounds and markercluster zoom issue #355

closca opened this issue Feb 3, 2018 · 0 comments

Comments

@closca
Copy link

closca commented Feb 3, 2018

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant