Skip to content

Possible to change bounds of map based on what is selected by LayerControl #1313

@galewis2

Description

@galewis2

In short, is it possible to have Folium generate a map whereby the map is zoomed and/or bounding box changed when the user changes the layer?

I'm currently using FeatureGroups added to the map, overlay off (so one layer can be viewed at a time). I would like to automatically have the map zoom to the featuregroup extent when selected.

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementFeature request or idea about how to make folium betterwork in progressWork is in progress on a PR, check the PR to see its status

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions