provide parameter to set lat/long ranges of current view with tile maps
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- Python
- Sterne
- 18.8k
- Forks
- 2.8k
- Ø Merge
- 16 Std. 26 Min.
- Gemergte PRs (30 T.)
- 21
Beschreibung
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.
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Beginnen Sie mit den im Issue genannten Parametern der Layout-Karte—map.center, map.zoom und der verknüpften Referenz layout.map.bounds—und vergleichen Sie sie anschließend mit geo.fitbounds. Legen Sie fest, wie sich die Breiten-/Längengradbereiche der aktuellen Ansicht und die automatische Anpassung an Trace-Daten bei responsiven oder sich ändernden Abbildungen verhalten sollen; abgeschlossen ist die Aufgabe, wenn das angeforderte Verhalten spezifiziert und konsistent unterstützt wird.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- python
- Bereich
- data-visualization
- Issue-Typ
- Feature
- Schwierigkeit
- 5/5
- Geschätzter Aufwand
- Über eine Woche
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 35/100