python-visualization / python-visualization/folium
Make it possible for a marker to link to another marker
Nessuno ha ancora preso questa issue.
- Lingua principale
- Python
- Stelle
- 7.4k
- Fork
- 2.3k
- Merge medio
- 17h 22m
- PR unite (30g)
- 11
Descrizione
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.
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
L’issue non indica file né test; inizia esaminando la gestione dei popup dei marker in Folium e le API dei marker di Leaflet.js. Il lavoro è completato quando un link del popup disattiva il marker corrente, centra la mappa sul marker di destinazione e apre il popup di destinazione.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- javascript, python
- Ambito
- data-visualization, frontend
- Tipo di issue
- Funzionalità
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 35/100