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

Add: dynamically adjust map bounds #6

Open
ericnost opened this issue May 15, 2020 · 0 comments
Open

Add: dynamically adjust map bounds #6

ericnost opened this issue May 15, 2020 · 0 comments

Comments

@ericnost
Copy link
Member

So that the map automatically "fits" the geographic range of the facilities being displayed.

This can be done by removing the zoom parameter and adding:

bounds = m.get_bounds() m.fit_bounds(bounds)

before return m

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