WP GPX Maps – GPX, FIT & KML maps with elevation profile
Show your hikes, rides and runs from GPX, FIT, TCX or KML files on an interactive map with elevation profile, charts and route summary.
Install in
WP GPX Maps turns a GPX, FIT, TCX or KML file into an interactive map and charts: upload the track, add the GPX Map block (or the [sgpx] shortcode) and your readers get the route, the elevation profile and the statistics of your hike, ride or run.
See how it works in under three minutes: the block, the shortcode, the charts, 3D maps and activities.
Fast, also with very long tracks
The map code is loaded only on the pages that show a map, and every map starts when it gets near the screen. Even long-distance trails open in a second or two. See them live:
- Camino Francés: 769 km, 32,962 points, a 2 MB GPX file
- Alta Via 1 of the Dolomites: 120 km, 7,441 points
- Alta Via degli Eroi on Monte Grappa: 40 km over the First World War front line
Maps
- OpenStreetMap and other free maps (no account needed): OpenStreetMap, OpenTopoMap, CyclOSM, Humanitarian, OpenSeaMap, and the Thunderforest maps (OpenCycleMap, Outdoors, Transport, Landscape) with a free Thunderforest API key.
- MapLibre (recommended), free and without an API key: vector maps (OpenFreeMap Liberty, Bright, Positron), OpenStreetMap and OpenTopoMap, 3D terrain, fog and sky, shaded relief and a tilted 3D view, or your own style (MapTiler, Stadia Maps…).
- MapBox with your own API key: Outdoors, Streets, Satellite, Satellite Streets, Light, Dark, Standard and custom styles, 3D terrain, fog and a tilted 3D view (
pitch,bearing). - Track colored by grade (blue descent, green flat, yellow to red climb), speed, heart rate or elevation, with a legend.
- Several GPX files in one map (
gpx="a.gpx,b.gpx"), one color per file with a legend. - Activities: tag your routes as hiking, stroller-friendly, mountain bike, climbing, snowshoeing and more (or your own activities, each with an emoji icon). Every activity has its own page on the site, and the site search finds routes by activity.
- Soft edges: the map can fade into the page instead of ending with a hard border (
fadeedges). - Start / finish markers, distance markers every N km or miles, waypoints with popups, full screen, photos from NextGEN Gallery or from the images attached to the post.
Charts
- Filled elevation profile, speed, heart rate, cadence, temperature and grade.
- Move the mouse on the chart and the position is shown on the map; move it on the track and the point is shown in the chart.
- GPS noise is smoothed out: grade averaged over about 100 m, speed without single spikes.
- Meters, kilometers, feet, miles or nautical miles; speed in km/h, mph, min/km, min/mile, knots or min/100 m.
Summary
Total distance, maximum and minimum elevation, total climbing and descent, average and maximum speed, maximum grade, average heart rate, cadence and temperature, total time and moving time (pauses excluded).
Readable by AI assistants, search engines and screen readers
A map drawn by JavaScript is invisible to ChatGPT, Perplexity, Google AI Overviews and other AI assistants, to search engines and to screen readers: they read the text of the page, not the map. WP GPX Maps also describes every track in the page itself:
- Text description of the route, e.g. “Map of the route Sentiero 157: 4.38 km, 145 m of climbing and 376 m of descent, elevation between 1,315 m and 1,580 m, time 01:54:36. It starts at … and ends at …”, linked to the map for screen readers. Not shown on the page by default, or shown under the map (
description="visible"). - Structured data (schema.org
TouristTripin JSON-LD) with distance, climbing and descent, highest and lowest point, time, the line of the route, the start and finish and the waypoints shown on the map (each with its coordinates and a link to OpenStreetMap), so AI assistants and search engines can answer questions like “how long is this hike?” with the right numbers. The track file is linked only when you allow its download. - Both can be turned off in Settings > WP GPX Maps or for one map (
description="false",structureddata="false"), and changed by developers with thewpgpxmaps_track_descriptionandwpgpxmaps_structured_datafilters.
Easy to use
- GPX Map block for the block editor with live preview: pick an uploaded GPX file from a list and set every option in the sidebar.
- GPX Map widget for Elementor, with the same options and a live preview in the Elementor editor.
- Works with WP Travel Engine: add the track of a trek or a tour in the trip editor and the trip page shows the map and elevation profile in the Map tab, plus distance, climbing and highest point in the trip facts. One file per day for trips in stages.
- Upload your track files in the Media Library, like images: they are organized by month, searchable and attached to the post. Or keep them in Settings > WP GPX Maps > Tracks (editors and authors can upload their own files).
- Every option has a default in the settings, so a simple
[sgpx gpx="/wp-content/uploads/gpx/my-track.gpx"]is enough. - GPX 1.0 and 1.1 (Garmin and Strava extensions: heart rate, cadence, temperature), FIT files from Garmin, Wahoo and other devices, TCX and KML / KMZ, multi-track files.
- Fast pages: the map style is loaded only on the pages with a map, and every map downloads its code only when it gets near the screen (lazy load). Cache of the processed tracks, works with PHP 7.4 to 8.4.
WP GPX Maps Pro (coming soon)
A separate add-on for sites whose readers go out on the routes. The free plugin keeps every feature: Pro adds new ones.
- Offline maps and navigation: readers save the route on the phone and follow it in the mountains without signal, with distance and climb left and an off-route warning.
- Stages planner: the route split in days that end at the huts along the way.
- Weather and sun along the route at the passage times, real sunrise and sunset.
- Story maps that follow the text as readers scroll, and a map of all your routes with filters by activity, distance and climb.
- Estimated times (CAI times for hiking), MTB difficulty, steep slopes for ski touring, an image for social media and more.
Compare Free and Pro, and get notified at launch with a launch discount.
Support and development
- Questions and bug reports: the support forum.
- Development, issues and pull requests: GitHub.
- Translations: translate.wordpress.org.
- Support the development: GitHub Sponsors.
Icons made by Freepik from www.flaticon.com, licensed under CC BY 3.0.
Written by Joobi from the project's own listing. See the source page
1.16.01
- Fix: the GPX Map box of the WP Travel Engine trip editor no longer overflows the sidebar of the block editor (shorter labels for the Map tab position)
1.16.00
- New: works with WP Travel Engine. A GPX Map box in the trip editor (track file, or one file per day), the map and elevation profile in the Map tab of the trip page, and distance, climbing and highest point in the trip facts. Filters wpgpxmaps_travel_engine_shortcode_atts and wpgpxmaps_travel_engine_facts
1.15.00
- New: GPX Map widget for Elementor, with the options of the block (file, map engine and style, colors, markers, charts, summary) and a live preview in the editor. Options left on “Plugin setting” use the values of Settings > WP GPX Maps
- New: complete Italian and German translations, and the missing French and Spanish strings, included with the plugin until the language packs of translate.wordpress.org are complete
- Fix: a map could start twice when an editor ran its script again (block editor before WordPress 6.3, Elementor)
1.14.03
- WP GPX Maps Pro is coming: a notice shown once to administrators, three days after the update (two buttons, both hide it for good), a closed “More with WP GPX Maps Pro” panel in the block sidebar and a section in this page. Nothing changes in the free plugin and nothing is shown when Pro is active
1.14.02
- Works again on WordPress 6.0 to 6.4: sites that could not update from 1.7 because of the WordPress 6.5 requirement can now update
- Fix: on WordPress versions before 6.3 the map preview of the block started twice in the editor and the chart showed an error
- Fix: after an update the block editor could keep using an old copy of the block script from the browser cache
1.14.01
- Security fix: the texts of waypoints and photos are now always escaped in the map popups of the Leaflet engine. Update recommended. Thanks to the security researcher who reported it responsibly
1.14.00
- Structured data: the route now also lists its start and finish (one place for a loop) and the waypoints shown on the map, in the order they are met along the way, each as a schema.org Place with its coordinates (and elevation for waypoints) and a link to the point on OpenStreetMap. Waypoints hidden on the map, for example in a WP GPX Maps Pro treasure hunt, stay out
- New FAQ: what structured data can and cannot do for search engines
1.13.04
- Fix: total climbing and descent were far too high on tracks with noisy GPS elevation, because every small up and down was added (a hike between 1,515 and 1,827 m showed 1,608 m of climbing). Changes under 5 meters are now ignored as noise, while real climbs are still counted whole: the same hike now shows 605 m. Tracks from planners and barometric devices change little (about 5% less). Developers can change the 5 meters with the new
wpgpxmaps_climb_thresholdfilter (0 gives the old numbers)
1.13.03
- Privacy (GDPR): the default waypoint flag and current position icons are now part of the plugin, so maps no longer load anything from maps.google.com and no longer send the IP address of visitors to Google. Thanks to hupe13 for the report
1.13.02
- Fix: MapLibre maps of pages saved for offline use (WP GPX Maps Pro) showed neither the base map nor the track without signal: the map worker now starts from the page, so it gets its files and tiles from the saved copy
1.13.01
- Fix: MapLibre and Mapbox maps stayed empty, without the track, when the base map could not be loaded (no signal on the trail, a page saved for offline use, a wrong Mapbox key): they now show the track, the points and the chart on a plain background
1.13.00
- New: the mouse wheel zooms the map while it is in full screen (Leaflet, MapLibre and Mapbox), then follows the setting again when it leaves full screen
- Map buttons redesigned: the same look for Leaflet, MapLibre and Mapbox, all on the right in the order zoom, full screen, map type, flyover; the map style of MapLibre and Mapbox is chosen from a layers button
- Soft edges also on the MapLibre maps
- Built with Node 26 LTS and Vite 8
1.12.01
- Fix: the CyclOSM style is no longer offered for the MapLibre maps, where it stayed empty (its server does not allow MapLibre to load the tiles); maps that used it show the Liberty style. CyclOSM still works with the Leaflet maps
1.12.00
- New: map effects for MapLibre and MapBox, in the settings, in the block and in the shortcode: fog and sky (
fog), shaded relief that shows mountains and valleys also on flat maps (hillshade) and the height of the 3D terrain (exaggeration)
1.11.01
- Fix: no more 404 error in the browser console for maplibre-gl-worker.mjs.map on the MapLibre maps
1.11.00
- New: MapLibre map engine, free and open source: vector maps and 3D terrain without an API key, fog, tilted view, animation on load, flyover and a style switcher. Choose it in the settings, in the block or with
engine=maplibre - MapLibre is the recommended engine and the default on new sites; existing sites keep their maps as they are until the engine is changed in the settings
- New:
maplibrestyleand a custom MapLibre style (the https URL of a style.json, e.g. MapTiler or Stadia Maps) - Faster pages: MapBox and MapLibre are loaded only by the maps that use them, the Leaflet maps load about 4 times less JavaScript
- Fix: no more 404 error in the browser console for WP-GPX-Maps.es.js.map
1.10.04
- New name on wordpress.org, “WP GPX Maps – GPX, FIT & KML maps with elevation profile”, and new tags, so the plugin is easier to find
- The “what’s new” notice is shown only after a new version (for example 1.10 to 1.11), not after small fixes like this one
- The readme links to the wordpress.org support forum
1.10.03
- Fix: deactivating the plugin no longer deletes its settings; they are removed only when the plugin is deleted
- The notice after an update shows what is new, with the video, instead of the old message about Mapbox: the free OpenStreetMap maps do not need a Mapbox key
- A short request to leave a review, two weeks after the installation or the update (only for administrators, on the dashboard, the plugins page and the WP GPX Maps page; it can be postponed or turned off)
- Links to leave a review, to support the development and to get notified about WP GPX Maps Pro at the top of the WP GPX Maps page
1.10.02
- Fix: the max grade in the summary is measured over about 200 m instead of 100 m, so a small elevation error of the GPS no longer gives grades like 50-70% (tested also on 30,000-point tracks); the track colors by grade do not change
1.10.01
- Fix: the “Reduce GPX” and “Cache” checkboxes in the settings had labels that said the opposite of what they do: they are now “Keep all GPX points (do not reduce)” and “Do not use the cache” (the saved settings do not change)
- Fix: the labels and options of the settings page can be translated
1.10.00
- New: FIT (Garmin, Wahoo and other devices), TCX and KML / KMZ files, with heart rate, cadence, temperature and times when the file has them; KML placemarks are shown as waypoints
- New: the map style is loaded only on the pages that show a map, and every map downloads its code only when it gets near the screen (lazy load): faster pages, also for the pages without maps
- New: every map describes its track in text (for screen readers, search engines and AI assistants) and in schema.org structured data (JSON-LD), with settings, shortcode attributes
descriptionandstructureddataand filters to change them - New: activities (hiking, walking, stroller-friendly, mountain bike, road cycling, gravel, trail running, climbing, snowshoeing, ski touring, or your own) for posts, pages and track files, with an emoji icon, a page for each activity, site search by activity and the activities in the structured data
- New: track files (GPX, FIT, TCX, KML, KMZ) in the Media Library, organized by month and searchable, with a “Media Library” button in the GPX Map block; links to the site’s own files are read as local files instead of being downloaded
- Security: every uploaded track file (Media Library and Tracks tab) is checked: it must be a valid track file, without scripts, HTML or XML entities
- New: soft edges, the map fades into the page (setting, block option and
fadeedgesattribute, also with the color of the page) - New: OpenTopoMap (OSM9, replaces Hike & Bike, whose server is offline) and CyclOSM (OSM12) maps
- Fix: a clear message instead of an empty map when the file is corrupted, is not a track file or has no track points
- Fix: total distance too long when some points of the track have no elevation (a vertical jump to 0 m was added to the distance)
- Fix: GPX files with only a route (no track) have distance, statistics and chart
- Fix: the OpenStreetMap credit link uses https (no mixed content warning on https sites)
- Fix: OpenStreetMap maps in the block editor showed “Access blocked” tiles (the editor sends no Referer for images)
- Fix: Open Cycle Map without a Thunderforest API key stopped the map with a JavaScript error, it now shows CyclOSM; the other Thunderforest maps without a key show OpenStreetMap
- Fix: the Thunderforest Outdoors address was misspelled, so that map never loaded
- Fix: OpenSeaMap is shown over OpenStreetMap (it only has the sea marks) and can be turned on and off in the layer list
- Fix: the map attributions credit the real map provider instead of MapBox; the OpenStreetMap tiles are no longer downloaded twice
- Removed the “MapToolKit – Terrain” option (provider removed in 1.7.02): maps that still use it show OpenStreetMap
1.9.00
- New: “GPX Map” block for the block editor, with live preview, a list of the uploaded GPX files and all the main options in the sidebar (the [sgpx] shortcode keeps working)
- New: several GPX files in one map, gpx=”a.gpx,b.gpx”: one color per file, legend, cumulative distance and totals
- New: start / finish markers (hide with startend=”false”) and distance markers every N km or miles (kmmarkers=”5″)
- New: summary with moving time, max speed and max grade (summarymovingtime, summarymaxspeed, summarymaxgrade)
- New: filled elevation profile and a vertical line on the selected point; hovering the track also shows the point in the chart with MapBox
- Fix: “Total descent” was a negative number
- Fix: the chart distance no longer restarts from 0 for each track of a multi-track GPX file
- Fix: chart tooltip showed pixel positions instead of distance and values; selecting a point from the map did not show it in the chart
- Developers: wpgpxmaps_get_track_info() and wpgpxmaps_module_url(); the map module exports Leaflet
- New: MapBox style, 3D terrain and initial 3D view for each map: mapboxstyle, mapbox3d, pitch, bearing (also in the block)
- Charts: grade averaged over about 100 m and speed without GPS spikes; max speed computed the same way; whole meters on the altitude axis
- Fix: gheight=”0px” showed an empty chart instead of hiding it
- New: color the track by grade (climb / descent), speed, heart rate or elevation, with a legend on the map: colorby=”grade|speed|hr|elevation”, in the block and in the settings
- Fix: “false” values in the shortcode (e.g. showele=false, summary=false) now turn off options enabled in the settings
- Maps also start when the page is already loaded (block editor preview, content loaded later)
- Developers: hooks for add-ons (filters wpgpxmaps_shortcode_atts, wpgpxmaps_map_extra, wpgpxmaps_map_html, wpgpxmaps_block_shortcode_atts, wpgpxmaps_admin_tabs; actions wpgpxmaps_enqueue_scripts, wpgpxmaps_admin_tab_{tab}; JavaScript event “wpgpxmaps:ready”)
1.8.00
- MapBox provider: needs ApiKey and brings a lot of new cool features like 3d maps and much more
- Security: fixed a reflected XSS. Shortcode parameters can no longer be set from the page URL (query string)
- Security: GPX files and folders must be inside the WordPress site, wp-content or uploads folder (path traversal)
- Security: added nonce checks to GPX upload and to the update notice dismiss (CSRF)
- Security: safer cache reading, no network access while parsing GPX, temporary copies of remote GPX are deleted
- Fix: map not displayed on pages with nested permalinks or with WordPress in a subfolder
- Fix: map not displayed when waypoints are enabled
- Fix: PHP 8 fatal errors with missing, invalid or remote GPX files that can’t be downloaded
- Fix: PHP 8 errors with tracks without time or elevation and with empty heart rate, cadence or temperature values
- Fix: PHP 8 warnings with images without GPS data, missing NextGen galleries, Clear Cache and shortcodes outside posts
- Fix: files uploaded by Editors and Authors are saved in their own folder again
- Fix: total time in the summary is correct for tracks longer than 24 hours
- Fix: chart error (and map not centered) with GPX files that contain more than one track
- Fix: chart error when the altitude chart is disabled
- Fix: heart rate, cadence and temperature are read from every GPX app (e.g. Strava), not only Garmin
- Fix: custom waypoint icon was never shown
- Fix: MapBox maps use the API key and the default style from the plugin settings
- MapBox: waypoints with popups, no duplicate markers when the style is changed, play button icon
- Fix: GPX files with more than one track are drawn as separate lines (Leaflet and MapBox)
- Fix: browsers load the new JavaScript after every plugin update (no stale cache)
- Thanks to arnaud-izzi (PHP 8 fixes for GPX files without elevation, GitHub #65) and DAnn2012 (help text, GitHub #66)
- Requires WordPress 6.5 and PHP 7.4 or newer
1.7.10
- Fix security issues
1.7.06
- Fix vulnerability
1.7.05
- Fix NextGen warnings
1.7.04
- Fix php8+ errors
1.7.03
- fix download file link
- fix error with images exif parsing
1.7.02
- fix admin error
1.7.01
- General: Removed Maptoolkit (code OSM6) map provider. Requested by H.F. (Maptoolkit Managing director)
- General: Added new map type “Thunderforest – Outddors” (OSM3)
- Admin: Added admin notices in the dashboard
- Settings Tab: In the map selection changed to the correct maps provider from “Open Cycle Map”* Settings Tab: to “Thunderforest”
- Administration Tab: New Tab with the settings “Editor & Author upload” and “Show update notice”
- Help Tab: In the map selection changed to the correct maps provider from “Open Cycle Map” to “Thunderforest”
- Output: In the map selection changed to the correct maps provider from “Open Cycle Map” to “Thunderforest”
- Output: Fixed in map footer for each map, the corresponding map provider is displayed with URL
- Code: Added PHP version notices, WordPress 5.3 requires PHP 5.6.20
- Code: Added Missing entries for add and delete options
- Code: Style for output moved in a seperate CSS file
- Code: Adjustments a la WPCS
- Code: Small CSS design optimizations for the tabs
- Code: Upgrade bootstrap-table to 1.13.2
- Code: Removed german language file (now over translate.wordpress.org)
1.7.00
- Added: Authors can upload GPX tracks in a folder called as your user name, inside [../wp-upload dir/gpx/[your user name] (thanks to wildcomputations)
- Added: Authors an Admins can see the current values for shortcodes in help tab
- Added: Button to instant copy the shortcode of the selected GPX file in the tab track
- Added: different size logos for the plugin store (icon.svg, icon128x128.png and icon256x256.png) [inside ../plugins/wp-gpx-maps/assets]
- Changed: Settings tab is for non-Admin users is not more visible
- Tweak: Help tab is easier to read
- Tweak: Plugin is now complete translatable (Backend + Frontend)
- Tweak: WordPress coding standards
- Upgrade: Leaflet to 1.5.1
- Upgrade: leaflet.fullscreen to 1.4.5
- Upgrade: Chart.min.js to 2.8.0
1.6.07
- resolve admin error
1.6.06
- Added average values under the graph (thanks to cyclinggeorgian)
1.6.04
- NGG gallery is working
- Getting HR, Cad and Temp working again (thanks to cyclinggeorgian)
- Fix javascript errors
- Fix multiple traks gpx
1.6.03
- Fix syntax error causing graph not to display (thanks to nickstabler)
1.6.02
- Resolved errors with start and end icons
1.6.01
- Removed Gogole maps. Leafletjs instead.
- — NextGen Gallery is not working, due next gen image format changed — I’ll fix soon
1.5.05
- renamed javascript functions to avoid collision with other plugins
- reduced chart line thickness
1.5.04
- fix uom
- fix file not found
1.5.03
- fix random error
1.5.02
- Security improvements
1.5.01
- Improved security
- Included javascript
- Multiple file upload
- Implemented sorting in file list
- Renamed internal function to improve wp compatibility
1.5.00
- replaced highcharts with chartjs. This is a forced choice due highcharts license issue, view: https://devfarm.it/wordpress-plugin/wordpress-plugin-directory-notice-wp-gpx-maps-temporarily-disabled/
1.3.16
- Added Norwegian nb_NO translation (thanks to thordivel)
- Added Japanese ja_JP translation (thanks to dentos)
1.3.15
- Switched to HTTPS where possible (thanks to delitestudio)
1.3.14
- Added Thunderforest Api Key on settings: for OpenCycleMap
1.3.13
- Added google maps api key on settings
- Removed parameter ‘sensor’ on google maps js
- Added unit of measure of speed for swimmers: min/100 meters
1.3.12
- Fix incompatibility with Debian PHP7 (thanks to phbaer) https://github.com/devfarm-it/wp-gpx-maps/pull/5
1.3.10
- Improved german translations (thanks to Konrad) http://tadesse.de/7882/2015-wanderung-ostrov-tisa-ii/
Follow this listing's changes (Atom feed)