I want to create an overview map with gpx tracks. However, I want the gpx tracks to only be visible after you click on the corresponding marker (i.e. starting point).
Now I’ve created groups with options. It seems like I’m doing something wrong. I used “Title” as option and added titles to the different elements that I want to be grouped.
The leaflet-marker works as I want. I can toggle on/off startpunt. However, the extramarkers don’t seem to get added to a group. Instead, a single new marker is created – see screenshot.
Your code works as expected. The new “green marker” are 2 markers in a cluster. From help: /wp-admin/admin.php?page=extensions-leaflet-map&tab=markercluster
When markers are grouped, Leaflet.markercluster is automatically active and the parameter and settings for cluster are valid too.
Use disableClusteringAtZoom=0:
If set, at this zoom level and below, markers will not be clustered. If 0, it is disabled.
Our posts have crossed. π
This reply was modified 1 year, 2 months ago by hupe13.