python-visualization / python-visualization/folium

Handling groups in FastMarkerCluster

Open
#1,871 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
7.4k
Forks
2.3k
Avg merge
17h 22m
Merged PRs (30d)
11

Description

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 ...

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the FastMarkerCluster and Layer Control entry points described in the issue, comparing them with the existing MarkerCluster FeatureGroupSubGroup behavior. Done means FastMarkerCluster can expose separate technology groups, such as 2G, 3G, 4G, and 5G, through the Layer Control while retaining its large-dataset and HTML-size benefits.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, python
Domain
data-visualization, frontend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.