I am still learning wordpress but I managed to do it via a csv where I simply loaded all gpx and transformed it into the leaflet shortcode like this:
[leaflet-map fitbounds zoomcontrol height=500]
[leaflet-gpx src=”your_first.gpx” color=blue]{name}[/leaflet-gpx]
[leaflet-gpx src=”your_second.gpx” color=blue]{name}[/leaflet-gpx]
I am also still looking for the solution via a wordpress plugin/hook to automate this and create the ability to filter the routes on map.
Plugin Contributor
hupe13
(@hupe13)
I can put this on the wish list for my plugin.
@gianky69, what do you mean with “clusters”?
Clusters are areas where there are too many graphical elements (waypoints, polylines, polygons). These elements are “joined” together in a single entitty that expands when clicked or zoomed in.
A good plugin is this:
Plugin Contributor
hupe13
(@hupe13)
all the gpx files
I assumed that these files contain tracks.
Clustering is realized in Extensions for Leaflet Map, but for markers.
Plugin Contributor
hupe13
(@hupe13)
You can test https://github.com/hupe13/extensions-leaflet-map-testing, if you like.
[geojsoncluster] clusters markers from gpx and geojson files, [leaflet-dir ... ] generates the shortcode [leaflet-..] and processes this for all files in a directory.
Thanks a lot, I’ll test ASAP!
Plugin Contributor
hupe13
(@hupe13)
[geojsoncluster] is now integrated in [cluster] in V2.2.4. [cluster] supports leaflet-marker and markers in geojson, gpx and kml files now.