add GeoJSON Layer Display
Nadie ha tomado este issue todavía.
- Lenguaje dominante
- JavaScript
- Estrellas
- 18.3k
- Forks
- 2k
- Merge medio
- 2 d 12 h
- PR fusionados (30 d)
- 28
Descripción
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.
Guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Línea de trabajo
Comience examinando la compatibilidad de mapas y coropletas de Plotly.js, especialmente cómo se asocian actualmente las entidades GeoJSON con los datos. Defina el alcance para mostrar varias capas GeoJSON con colores y entradas de leyenda distintos sin un atributo z. El issue no proporciona ubicaciones de archivos ni de pruebas, por lo que será necesario identificar los puntos de entrada relevantes y las pruebas de aceptación.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- javascript
- Área
- data-visualization
- Tipo de issue
- Nueva funcionalidad
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 25/100