python-visualization / python-visualization/folium

Handling groups in FastMarkerCluster

Offen
#1,871 1 Kommentar 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Vorherrschende Sprache
Python
Sterne
7.4k
Forks
2.3k
Ø Merge
17 Std. 22 Min.
Gemergte PRs (30 T.)
11

Beschreibung

Is your feature request related to a problem? Please describe.
I really appreciate the FastMarkerCluster that allows me to plot over 300K markers and keep both a reactive map and a not so big generated HTML size (10 times smaller than MarkerCluster, so in my case 30MB vs 300MB).
However, as far as I understand, we loose the ability to manage groups ... with MarkerCluster it was possible to define several FeatureGroupSubGroup objects so that I could show/hide a subset of my data (e.g. markers for 2G / 3G / 4G / 5G mobile cells coordinates).
Could this be done with FastMarkerCluster ???

Describe the solution you'd like
Have FastMarkerCluster handle groups that are controlled through the Layer Control.

Describe alternatives you've considered
None

Additional context
In the below map snapshot, I am using FastMarkerCluster to plot 2G (black) / 3G (gray) / 4G (blue) / 5G (red) cells. The cell color is handled in the callback though a network_type attribute that is provided in addition to latitude and longitude.
Instead of a single item "Cell coordinates", I'd like to have 4 items based on the cell technology.

image

Implementation
Not sure to have the requested knowledge yet ...

Beitragsleitfaden

Beitragsleitfaden öffnen

Erste Schritte

  1. Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
  3. Forke das Repository und arbeite in einem Branch.
  4. Öffne einen Pull Request, der die Issue-Nummer nennt.

Rechercherichtung

Beginne mit den im Issue beschriebenen Einstiegspunkten von FastMarkerCluster und Layer Control und vergleiche sie mit dem bestehenden Verhalten von MarkerCluster FeatureGroupSubGroup. Als abgeschlossen gilt, wenn FastMarkerCluster separate Technologiegruppen wie 2G, 3G, 4G und 5G über den Layer Control bereitstellen kann und dabei seine Vorteile bei großen Datensätzen und der HTML-Größe beibehält.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
javascript, python
Bereich
data-visualization, frontend
Issue-Typ
Feature
Schwierigkeit
5/5
Geschätzter Aufwand
Über eine Woche
Aktivitätsstatus
Veraltet
Klarheit
Muss geklärt werden
Anfängerfreundlichkeit
25/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.