add GeoJSON Layer Display
Nessuno ha ancora preso questa issue.
- Lingua principale
- JavaScript
- Stelle
- 18.3k
- Fork
- 2k
- Merge medio
- 2g 12h
- PR unite (30g)
- 28
Descrizione
I propose for Plotly the ability to overlay multiple GeoJSON objects on a map, each with a distinct color and corresponding legend, without the need to bind them to a specific data attribute (like z in choropleth maps).
Currently, Plotly.js requires GeoJSON features to be associated with data for visualization. However, there are use cases, including one of my own, where the goal is simply to display the shapes defined by GeoJSON files, differentiate them with colors, and provide a legend for reference. This is purely for visual comparison and spatial representation.
For example, I have two GeoJSON datasets representing which type of agricultural simulation performed better for a region: Yield Potential (in blue) and Rainfed Potential (in yellow). I want to display these on a map, each with a random but consistent color, and include a legend to identify them. See this example image for reference.
Implementing this feature would benefit users who need to visualize spatial data layers without additional data-driven coloring. It would enhance Plotly's functionality and maintain consistency within applications that rely on Plotly for other types of data visualization.
I am open to trying contributing to the development of this feature and would like to hear the community's and maintainers' thoughts on its potential inclusion in Plotly.js.
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Direzione di ricerca
Iniziate esaminando il supporto di Plotly.js per mappe e coroplete, in particolare il modo in cui le feature GeoJSON vengono attualmente associate ai dati. Definite l'ambito per visualizzare più layer GeoJSON con colori e voci di legenda distinti senza un attributo z. L'issue non fornisce percorsi di file o test, quindi sarà necessario identificare gli entry point rilevanti e i test di accettazione.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- javascript
- Ambito
- data-visualization
- Tipo di issue
- Funzionalità
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 25/100