add GeoJSON Layer Display
Personne n'a encore pris cette issue.
- Langage dominant
- JavaScript
- Étoiles
- 18.3k
- Forks
- 2k
- Merge moyen
- 2 j 12 h
- PR mergées (30 j)
- 28
Description
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.
Guide de contribution
Ouvrir le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Piste de recherche
Commencez par examiner la prise en charge des cartes et des choroplèthes de Plotly.js, en particulier la manière dont les entités GeoJSON sont actuellement associées aux données. Définissez le périmètre nécessaire pour afficher plusieurs couches GeoJSON avec des couleurs et des entrées de légende distinctes sans attribut z. L’issue ne fournit aucun emplacement de fichier ou de test ; il faudra donc identifier les points d’entrée pertinents et les tests d’acceptation.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- javascript
- Domaine
- data-visualization
- Type d'issue
- Fonctionnalité
- Difficulté
- 5/5
- Temps estimé
- Plus d'une semaine
- Activité
- À l'abandon
- Clarté
- Plutôt claire
- Accessibilité débutants
- 25/100