• Could it be possible to load on a single map all the gpx files I have in a wordpress directory? Better with clusters…

Viewing 7 replies - 1 through 7 (of 7 total)
  • 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”?

    Thread Starter gianky69

    (@gianky69)

    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.

    Thread Starter gianky69

    (@gianky69)

    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.

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Multiple gpx from directory’ is closed to new replies.