Mapas WP GPX

Descripción

Este plugin tiene como entrada el archivo GPX con la ruta que has hecho y como salida muestra el mapa de la ruta y un gráfico de altitud interactivo (donde esté disponible).

Totalmente configurable:

  • Colores personalizados
  • Iconos personalizados
  • Multiple language support

Gráficos compatibles:

  • Altitud
  • Velocidad
  • Ritmo cardiaco
  • Temperatura
  • Cadencia
  • Grado

NextGen Gallery Integration:

¡Muestra tus imágenes de NextGen Gallery dentro del mapa!
Incluso si no tiene una cámara GPS, este plugin puede recuperar la posición de la imagen a partir de la fecha de la imagen y tu archivo GPX.

Post Attachments Integration:

Esta versión se amplía con: Stephan Klein y admite la visualización de todas las imágenes adjuntas a una una entrada sin usar NGG.

Prueba este plugin: https://devfarm.it/wp-gpx-maps-demo/

Soporte:

Si necesitas ayuda, utiliza: foro de soporte de www.devfarm.it

¿Te gustaría ayudar a corregir fallos o desarrollar aún más el plugin? En Github puedes contribuir fácilmente con tu código.

Traducciones:

Los traductores son bienvenidos a contribuir con el plugin. Utiliza el web de traducción de WordPress.

Los archivos de idioma en el plugin contienen 18 textos traducibles para 13 idiomas:

  • Catalan ca
  • Dutch nl_NL
  • Inglés (por defecto)
  • French fr_FR
  • Hungarian hu_HU
  • Italian it_IT
  • Noruego nb_NO
  • Polish pl_PL
  • Portuguese (Brazilian) pt_BR
  • Russian ru_RU
  • Español es_ES
  • Swedish sv_SE
  • Turkish tr_TR
  • Búlgaro bg_BG
  • Eslovaco cs_CZ
  • Noruego nb_NO
  • Japonés ja_JP

(Muchas gracias a todos los chicos que me ayudaron con las traducciones)

Los espacios de nombres GPX admitidos son:

  1. http://www.topografix.com/GPX/1/0

  2. www.topografix.com/GPX/1/1

  3. http://www.garmin.com/xmlschemas/GpxExtensions/v3

  4. http://www.garmin.com/xmlschemas/TrackPointExtension/v1

Gracias a: www.securcube.net, www.devfarm.it

Icons made by Freepik from www.flaticon.com is licensed by Creative Commons BY 3.0

Capturas

  • GPX simple
  • GPX con puntos de ruta
  • Admin area – List of tracks
  • Admin area – Settings
  • Altitud y velocidad
  • Altitud, velocidad y frecuencia cardíaca

Instalación

  1. Usa el instalador clásico de plugins de wordpress o copia la carpeta de plugins en el directorio /wp-content/plugins/

  2. Activar el plugin desde el menú «Plugins» de WordPress

  3. Añade el cshortcode [sgpx gpx=»>relative path to your gpx<«] o [sgpx gpx=»>http://somesite.com/files/yourfile.gpx<«]

FAQ

¿Qué tipos de mapas están disponibles?

Puedes utilizar los siguientes tipos de mapas:

  1. OSM1 = Open Street Map (ajustes por defecto)
  2. OSM2 = Open Cycle Map / Thunderforest – Open Cycle Map (obligatoria clave de API)
  3. OSM3 = Thunderforest – exteriores (se requiere clave de API)
  4. OSM4 = Thunderforest – transporte (se requiere clave de API)
  5. OSM5 = Thunderforest – apaisado (se requiere clave de API)
  6. OSM7 = Open Street Map – estilo de mapa humanitario
  7. OSM9 = Caminata y bicicleta
  8. OSM10 = Open Sea Map

Si usas OpenCycleMap sin la clave API, aparecerá una marca de agua en la tarjeta: «Se requiere una clave API».

Los mapas de Thunderforest Outdoors, Transport y Landscape solo se muestran con una clave API.

¿Qué atributos de shortcode están disponibles?

Puedes utilizar los siguientes shortcodes:

  1. gpx: ruta relativa al archivo GPX
  2. width: ancho del mapa (valor en porcentaje)
  3. mheight: altura del mapa (valor en píxeles)
  4. gheight: altura del gráfico (valor en píxeles)
  5. skipcache: no usar caché. Si es TRUE, puede ser muy lento (el valor por defecto es false)
  6. download: permitir que los usuarios descarguen su archivo GPX (el valor por defecto es false)
  7. summarytotlen: imprime los detalles resumidos de tu pista GPX (el valor por defecto es false)
  8. summarytotlen: imprime la distancia total en la tabla de resumen (el valor por defecto es false)
  9. summarymaxele: imprime la elevación máxima en la tabla de resumen (el valor por defecto es false)
  10. summaryminele: imprime la elevación mínima en la tabla de resumen (el valor por defecto es false)
  11. summaryeleup: imprime la escalada total en la tabla de resumen (el valor por defecto es false)
  12. summaryeledown: imprime el descenso total en la tabla de resumen (el valor por defecto es false)
  13. summaryavgspeed: imprime la velocidad media en la tabla de resumen (el valor por defecto es false)
  14. summarytotaltime: imprime el tiempo total en la tabla de resumen (el valor por defecto es false)
  15. mtype: tipos de mapas
  16. mlinecolor: color de la línea del mapa (el valor por defecto es #3366cc)
  17. zoomonscrollwheel: haz zoom en el mapa con la rueda de desplazamiento del ratón (el valor por defecto es false)
  18. waypoints: imprime los puntos de ruta gpx dentro del mapa (el valor por defecto es false)
  19. startIcon: icono de inicio del recorrido
  20. endIcon: icono del final del recorrido
  21. currentIcon: icono de posición actual (al pasar el cursor)
  22. waypointicon: icono personalizado de punto de ruta
  23. showele: muestra los datos de elevación dentro del gráfico (el valor por defecto es true)
  24. uom: unidad de medida de distancia/altitud
  25. 0 = metros/metros (ajustes por defecto)
  26. 1 = pies/millas
  27. 2 = metros/kilómetros
  28. 3 = metros/millas náuticas
  29. 4 = metros/millas
  30. 5 = pies/millas náuticas
  31. glinecolor: color de la línea de altitud (el valor por defecto es #3366cc)
  32. chartFrom1: valor mínimo para el gráfico de altitud
  33. chartTo1: valor máximo para gráfico de altitud
  34. showspeed: muestra la velocidad dentro del gráfico (el valor por defeto es falso)
  35. glinecolorspeed: color de la línea de velocidad (el valor por defecto es #ff0000)
  36. uomspeed: unidad de medida de la velocidad
  37. 0 = m/s (ajuste por defecto)
  38. 1 = km/h
  39. 2 = millas/h
  40. 3 = min/km
  41. 4 = min/millas
  42. 5 = Millas náuticas/hora (nudos)
  43. 6 = min/100 metros
  44. chartFrom2: valor mínimo para gráfico de velocidad
  45. chartTo2: valor máximo para gráfico de velocidad
  46. showhr: muestra la frecuencia cardíaca dentro del gráfico (el valor por defecto es false)
  47. glinecolorhr: color de la línea de frecuencia cardíaca (el valor por defecto es #ff77bd)
  48. showatemp: muestra la temperatura dentro del gráfico (el valor por defecto es false)
  49. glinecoloratemp: color de la línea de temperatura (el valor por defecto es #ff77bd)
  50. showcad: muestra la cadencia dentro del gráfico (el valor por defecto es falso)
  51. glinecolorcad: color de la línea de cadencia (el valor por defecto es #beecff)
  52. showgrade: muestra la calificación dentro del gráfico (el valor por defecto es falso)
  53. glinecolorgrade: color de la línea de calificación (el valor por defecto es #beecff)
  54. nggalleries: ID de galería NextGen o una lista de ID de galerías separadas por una coma
  55. ngimages: ID de imagen NextGen o una lista de ID de imágenes separados por una coma
  56. archivos adjuntos: muestra todas las imágenes adjuntas a la entrada (el valor por defecto es falso)
  57. dtoffset: la diferencia (en segundos) entre la fecha de la herramienta gpx y la fecha de la cámara
  58. pointsoffset: omite puntos a menos de XX metros (el valor por defecto es 10)
  59. donotreducegpx: imprime todo el punto sin reducirlo (el valor por defecto es falso)

¿Qué sucede si tengo archivos GPX muy grandes?

Este plugin imprimirá una pequeña cantidad de puntos para acelerar javascript y cargar la página.

¿Es gratis?

¡Sí!

Reseñas

15 de abril de 2024
Great plugin but please – test better – you should test with tracks that do not have time/date/elevation per point. Please update wp-gpx-maps-utils.php (lines 379 – 383): $points->maxEle = (count($_ele) > 0 ? max( $_ele ) : 0); $points->minEle = (count($_ele) > 0 ? min( $_ele ) : 0); $points->totalLength = max( $_dist ); $points->maxTime = (count($_time) > 0 ? max( $_time ) : 0); $points->minTime = (count($_time) > 0 ? min( $_time ) : 0); If tracks do not contains times(speed) or elevation the code breaks

TOP

28 de marzo de 2024
Ich nutze Sie auf meinem Alpencross Block und bin total begeistert!
3 de agosto de 2022
This plugin is easy to use. After cycling I download the gpx cycle route from my bike nav device and then upload to my cycle route site Zozibike.com. to display the route. developer keeps up with updates and have always been stable. Update: it now does not work and its been 3 weeks and no updates does not work with PHP8
25 de febrero de 2022
Excellent, c’est ce qui me fallait pour afficher les parcours club du «Quimper Cyclo Club». Merci
Leer todas las 56 reseñas

Colaboradores y desarrolladores

«Mapas WP GPX» es un software de código abierto. Las siguientes personas han colaborado con este plugin.

Colaboradores

«Mapas WP GPX» está traducido en 2 idiomas. Gracias a los traductores por sus contribuciones.

Traduce «Mapas WP GPX» a tu idioma.

¿Interesado en el desarrollo?

Revisa el código , echa un vistazo al repositorio SVN o suscríbete al registro de desarrollo por RSS.

Registro de cambios

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/

1.3.9

  • Retrieve waypoints in JSON, possibility to add a custom marker (Changed by Michel Selerin)

1.3.8

  • Improved Google Maps visualization

1.3.7

  • NextGen Gallery’s Attachment support. Thanks to Stephan Klein (https://klein-gedruckt.de/2015/03/wordpress-plugin-wp-gpx-maps/)

1.3.6

  • Fix: remote file download issue
  • Fix: download file link with WPML
  • Improved cache with filetime (thanks to David)

1.3.5

  • Fix: Garmin cadence again
  • Fix: WP Tabs

1.3.4

  • Fix: Garmin cadence
  • Infowindows closing on mouseout

1.3.3

  • Add feet/Nautical Miles units (thanks to elperepat)
  • Update OpenStreetMaps Credits
  • WP Tabs fix

1.3.2

  • fix: left axis not visible (downgrade highcharts to v3.0.10)
  • fix: fullscreen map js error

1.3.1

  • fix: http/https javascript registration
  • fix: full screen map css issue

1.3.0

  • Speed improvement
  • Rewritten js classes
  • Added Temperature chart
  • Added HTML5 Gps position (you can now follow the gpx with your mobile phone/tablet/pc)

1.2.6

  • Speed improvement

1.2.5

  • Added Catalan translation, thanks to Edgar
  • Updated Spanish translation, thanks to Dani
  • Added different types of distance: Normal, Flat (don’t consider altitude) and Climb distance

1.2.4

  • Added Bulgarian translation, thanks to Svilen Savov
  • Added possibility to hide the elevation chart

1.2.2

  • Smaller map type selector
  • Fix: Google maps exception for NextGen Gallery

1.2.1

  • Fix: NextGen Gallery 1.9 compatibility

1.2.0

  • NextGen Gallery 2 support
  • NextGen Gallery Pro support

1.1.46

  • Added meters/miles chart unit of measure
  • Added Russian translation, thanks to G.A.P

1.1.45

  • Added nautical miles as distance (Many thanks to Anders)

1.1.44

  • Added Chart zoom feature
  • Some small bug fixes

1.1.43

  • Added Portuguese (Brazilian) translation, thanks to André Ramos
  • new map: Open Cycle Map – Transport
  • new map: Open Cycle Map – Landscape

1.1.42

  • qTranslate compatible

1.1.41

  • Added Polish translation, thanks to Sebastian
  • Fix: Spanish translation
  • Minor javascript improvement

1.1.40

  • Improved italian translation
  • Added grade chart (beta)

1.1.39

  • Added French translation, thanks to Hervé
  • Added Nautical Miles per Hour (Knots) unit of measure

1.1.38

  • Fix: garmin gpx cadence and heart rate
  • Updated Turkish translation, thanks to Edip
  • Added Hungarian translation, thanks to Tami

1.1.36

  • Even Editor and Author users can upload their own gpx. Administrators can see all the administrators gpx. The other users can see only their uploads

1.1.35

  • Fix: In the post list, sometime, the maps was not displaying correctly ( the php rand() function was not working?? )
  • Various improvements for multi track gpx. Thanks to GPSracks.tv
  • Summary table is now avaiable even without chart. Thanks to David

1.1.34

  • 2 decimals for unit of measure min/km and min/mi
  • translation file updated (a couple of phrases added)
  • File list reverse order (from the newer to the older)
  • nggallery integration: division by zero fixed

1.1.33

  • Decimals reducted to 1 for unit of measure min/km and min/mi
  • map zoom and center position is working with waypoints only files
  • automatic scale works again (thanks to MArkus)

1.1.32

  • You can exclude cache (slower and not recommended)
  • You can decide what show in the summary table
  • German translation (thanks to Ali)

1.1.31

  • Fixed fullscreen map image slideshow

1.1.30

  • Multi track gpx support
  • Next Gen Gallery images positions derived from date. You can adjust the date with the shortcode attribute dtoffset
  • If you set Chart Height (shortcode gheight) = 0 means hide the graph
  • Fix: All images should work, independent from browser cache

1.1.29

  • Decimal separator is working with all the browsers
  • minutes per mile and minutes per kilometer was wrong

1.1.28

  • Decimal and thousand separator derived from browser language
  • Added summary table (see settings): Total distance, Max elevation, Min elevation, Total climbing, Total descent, Average speed
  • Added 2 speed units of measure: minutes per mile and minutes per kilometer

1.1.26

  • Multilanguage implementation (only front-end). I’ve implemented the italian one, I hope somebody will help me with other languages..
  • Map Full screen mode (I’m sure it’s not working in ie6. don’t even ask!)
  • Added waypoint custom icon

1.1.25

  • Added possibility to download your gpx

1.1.23

  • Security fix, please update!

1.1.22

  • enable map zoom on scroll wheel (check settings)
  • test attributes in get params

1.1.21

  • google maps images fixed (templates with bad css)
  • upgrade to google maps 3.9

1.1.20

1.1.19

  • include jQuery if needed

1.1.17

  • Remove zero values from cadence and heart rate charts
  • nextgen gallery improvement

1.1.16

  • Cadence chart (where available)
  • minor bug fixes

1.1.15

  • migration from google chart to highcharts. Highcharts are much better than google chart! This is the base for a new serie of improvements. Stay in touch for the next releases!
  • heart rate chart (where available)

1.1.14

  • added css to avoid map bars display issue

1.1.13

  • added new types of maps: Open Street Map, Open Cycle Map, Hike & Bike.
  • fixed nextgen gallery caching problem

1.1.12

  • nextgen gallery display bug fixes