leaflet-gpx icon indicating copy to clipboard operation
leaflet-gpx copied to clipboard

Named points

Open VladimirKalachikhin opened this issue 7 years ago • 0 comments

"GPX points can be named, for example to denote certain POIs (points of interest). You can setup rules to match point names to create labeled markers" I have the POIs file like this:

  <wpt lat="60.2068333" lon="25.7541667">
    <time>2011-11-08T20:32:40Z</time>
    <name>Aggskar</name>
    <sym>Beach</sym>
    <extensions>
      <gpxx:WaypointExtension xmlns:gpxx="http://www.garmin.com/xmlschemas/GpxExtensions/v3">
        <gpxx:DisplayMode>SymbolAndName</gpxx:DisplayMode>
      </gpxx:WaypointExtension>
    </extensions>
  </wpt>

  <wpt lat="55.9259326" lon="14.3052798">
    <time>2013-03-08T12:31:11Z</time>
    <name>Ahus</name>
    <cmt>150-200kr EWTDA Inet</cmt>
    <desc>150-200kr EWTDA Inet</desc>
    <sym>Marina</sym>
    <extensions>
      <gpxx:WaypointExtension xmlns:gpxx="http://www.garmin.com/xmlschemas/GpxExtensions/v3">
        <gpxx:DisplayMode>SymbolAndName</gpxx:DisplayMode>
      </gpxx:WaypointExtension>
    </extensions>
  </wpt>

First, the type of point are specified by <sym> </sym> tags. Second, the custom marker are specified by

    <gpxx:WaypointExtension xmlns:gpxx="http://www.garmin.com/xmlschemas/GpxExtensions/v3">
       <gpxx:DisplayMode>SymbolAndName</gpxx:DisplayMode>
     </gpxx:WaypointExtension>

extension.

My question is: Is it possible to match <sym> </sym> tags to create labeled markers? and/or Is it possible add support Garmin gpxx extensions?

Next question: Is there a way to add a popup from <desc></desc> tags to labeled marker?

VladimirKalachikhin avatar Oct 28 '18 20:10 VladimirKalachikhin