python-visualization / python-visualization/folium
Make it possible for a marker to link to another marker
Nadie ha tomado este issue todavía.
- Lenguaje dominante
- Python
- Estrellas
- 7.4k
- Forks
- 2.3k
- Merge medio
- 17 h 22 min
- PR fusionados (30 d)
- 11
Descripción
Is your feature request related to a problem? Please describe.
It may be a common use case that a marker might relate to other relevant makers. It would be great if a marker's popup could contain links to other markers.
Describe the solution you'd like
Have a standard way to include in a popup links to other markers. The link, once activated, would:
- deactivate its own marker's popup,
- center the map view on the target marker,
- and activate the target marker's popup.
Describe alternatives you've considered
Just referencing the other marker by an id, with no link, but that is confusing, awkward, unwieldy, and impractical for the end user, which not only would have to keep in mind an id but also have to search for it around the map.
Additional context
That would make it possible for users to easily navigate between relevant markers.
However, activating markers by links might not be a feature that leaflet.js itself supports, I haven't checked yet.
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
El issue no menciona archivos ni pruebas; empieza examinando el manejo de los popups de los marcadores en Folium y las APIs de marcadores de Leaflet.js. Se considera terminado cuando un enlace del popup desactiva su marcador actual, centra el mapa en el marcador de destino y abre el popup de destino.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- javascript, python
- Área
- data-visualization, frontend
- Tipo de issue
- Nueva funcionalidad
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 35/100