README.txt 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. CONTENTS OF THIS FILE
  2. ---------------------
  3. * Introduction
  4. * Requirements
  5. * Installation
  6. * Configuration
  7. INTRODUCTION
  8. -------------
  9. The GPX Track & Elevation module creates an "Elevation profile" field that can
  10. be linked to a single valued file type field containing a GPX file.
  11. The formatter will show a map and an elevation profile from the GPX file
  12. using the google maps and visualization api.
  13. The module takes into account only the <trk> and <wpt> tags
  14. (Tracks and Waypoints) and ignores the <rte> tags (Routes).
  15. The elevations will be parsed from the tags of the gpx file, so this module is
  16. useless if your gpx files does not include the <ele> optional tag.
  17. Given a gpx file the module will consider every <TRK> tag as a single stage of
  18. the whole track: all of them will be represented on the same map, but everyone
  19. will have a dedicated elevation profile named as the tag of the track.
  20. The map and the elevation profiles are linked, so moving the mouse on the
  21. profile will highlight the corresponding point on the map.
  22. It is also possible enabling the link in the reverse way: pointing the mouse
  23. on the track will highlight the corresponding point on the elevation profiles.
  24. Any registered waypoint (<WPT> tag) in the GPX file will appear on the same map
  25. of the tracks.
  26. REQUIREMENTS
  27. ------------
  28. No special requirements.
  29. INSTALLATION
  30. ------------
  31. Install as you would normally install a contributed Drupal module. See:
  32. https://drupal.org/documentation/install/modules-themes/modules-7
  33. for further information.
  34. CONFIGURATION
  35. -------------
  36. You can configure the GPX Track & Elevation module from
  37. Home >> Administration >> Configuration >> Web services >> GPX Track & Elevation
  38. Here you will find three configuration tabs:
  39. - Generic Settings
  40. - Tracks Settings
  41. - Waypoints Settings
  42. *****Generic Settings*****
  43. In this tab there are two main section: "General Configuration" and
  44. "Configuration for entity types".
  45. In the "General Configuration" section there are five parameters you can set:
  46. - Enable bidirectional link: if selected, when you move the mouse over the track
  47. the corresponding point on the elevation profile will be highlighted.
  48. - Track color: enter a valid RGB color to draw the track on the map.
  49. - Elevation profile color: enter a valid RGB color to draw the elevation profile
  50. - Track stroke: enter a value for the stroke weight
  51. - Map type: select a valid Google Maps map type.
  52. In the "Configuration for entity types" section you can activate the elevation
  53. profile for each single entity.
  54. Enabling the module will create a new field type named "Elevation profile".
  55. When associating an "Elevation profile" field to a content type you will
  56. be asked to select the field where the gpx track has to be retrieved from.
  57. Only file type fields with cardinality 1 will be selectable.
  58. *****Tracks Settings*****
  59. In this tab there are three parameters you can set.
  60. - Image for track start point: indicates the image to be used to show the start
  61. of a track. If left empty it default to:
  62. http://www.google.com/mapfiles/dd-start.png
  63. - Image for track end point: indicates the image to be used to show the end
  64. of a track. If left empty it default to:
  65. http://www.google.com/mapfiles/dd-end.png
  66. - Image for track end point of last track: indicates the image to be used
  67. to show the end of the last track. If left empty it default to:
  68. http://www.google.com/mapfiles/dd-end.png
  69. When shown on the map, the anchor of the marker is located along the center
  70. point of the bottom of the image.
  71. *****Waypoints Settings*****
  72. In this tab you can set images to be used for different waypoint types.
  73. You can only use square images.
  74. The images will be used to show on the maps waypoints whose <type> tag
  75. is the same as the "Waypoint type name" defined in this tab.
  76. You can define a "default" marker type to be used for waypoints without a <type>
  77. tag or with a <type> tag not defined in this form.
  78. If a "default" marker type is not defined the standard
  79. http://www.google.com/mapfiles/marker.png image will be used.
  80. For all the types defined in this page a 30px x 30px marker image will be used
  81. with anchor located in the image center.