Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

provide parameter to set lat/long ranges of current view with tile maps #4753

Open
sdidier-dev opened this issue Sep 8, 2024 · 0 comments
Open
Labels
feature something new P3 not needed for current cycle

Comments

@sdidier-dev
Copy link
Contributor

Hello Plotly Team!

I have a feature request for the tile-maps.
As a worked on Figure Friday week 35 with the people map dataset, I noticed that it is currently quite hard to set the lat/lon ranges to have a nice view of the map, specially if we want a responsive app or if the data changes.

Currently, if I didn't miss the right parameters , we can use the layout params map_center + map_zoom, like:

map={
    'center': {'lat': 40, 'lon': -115}, 
    'zoom': 3,
},

Is it possible to have a parameter similar to:
https://plotly.com/python/reference/layout/#layout-map-bounds
to set the lat/lon ranges of the current view, not the min/max?

And maybe it would be also nice to have a parameter similar to
https://plotly.com/python/reference/layout/geo/#layout-geo-fitbounds
used for the geo maps (outline maps), to auto set the ranges to fit the traces data of the figure.

@gvwilson gvwilson changed the title Tile maps feature request 🙏 provide parameter to set lat/long ranges of current view with tile maps Sep 9, 2024
@gvwilson gvwilson added feature something new P3 not needed for current cycle labels Sep 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature something new P3 not needed for current cycle
Projects
None yet
Development

No branches or pull requests

2 participants