
內容簡介
這個外掛的輸入是包含使用者運動軌跡的 GPX 檔案,輸出則顯示軌跡地圖和互動式高度圖表((若有))。
完全可配置:
自訂顏色
自訂圖示
多種語言支援
支援的圖表:
高度
速度
心率
溫度
踏頻
坡度
NextGen Gallery 整合:
在地圖上顯示你的 NextGen Gallery 圖片!
即使你沒有 GPS 相機,此外掛亦可從圖片日期和你的 GPX 檔案擷取圖片位置。
Post Attachments 整合:
此版本由 Stephan Klein 擴展,支援在文章中顯示所有附加的圖片,而無需使用 NGG。
試用此外掛:https://devfarm.it/wp-gpx-maps-demo/
支援:
如需幫助,請使用這個支援論壇
您希望協助修復錯誤或進一步開發這個外掛嗎?您可以在 Github 上輕鬆地貢獻您的代碼。
翻譯:
歡迎譯者加入此外掛的翻譯。請使用 WordPress 翻譯網站。
此外掛的語言檔包含 18 條可翻譯的文本,支援 13 種語言:
加泰隆尼亞語 ca
荷蘭語 nl_NL
英語(預設)
法語 fr_FR
匈牙利語 hu_HU
義大利語 it_IT
挪威語 nb_NO
波蘭語 pl_PL
葡萄牙語(巴西) pt_BR
俄語 ru_RU
西班牙語 es_ES
瑞典語 sv_SE
土耳其語 tr_TR
保加利亞語 bg_BG
斯洛伐克語 cs_CZ
挪威語 nb_NO
日語 ja_JP
(感謝所有幫助我進行翻譯的翻譯人員)
支援的 GPX 命名空間有:
http://www.topografix.com/GPX/1/0
www.topografix.com/GPX/1/1
http://www.garmin.com/xmlschemas/GpxExtensions/v3
http://www.garmin.com/xmlschemas/TrackPointExtension/v1
特別感謝:www.securcube.net、www.devfarm.it
圖示採用自 Freepik,由 www.flaticon.com 製作,以 創用 CC 3.0 授權。
外掛標籤
開發者團隊
📦 歷史版本下載
原文外掛簡介
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.
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.
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 TouristTrip in JSON-LD) with distance, climbing and descent, highest and lowest point, time and the line of the route, 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 the wpgpxmaps_track_description and wpgpxmaps_structured_data filters.
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.
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.
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.
