-
Notifications
You must be signed in to change notification settings - Fork 124
Closed
Labels
Description
Hi there!
My gpx track has named point:
...
<wpt lat="44.421723" lon="34.030495"> <ele>325.63</ele> <time>2020-10-18T09:48:17.000Z</time> <name>Old</name> <desc>...</desc> </wpt>
...
But this code doesn't change its icon:
const track = new L.GPX('link to gpx-track', { async: true, marker_options: { pointMatchers: [ { regex: /Old/i, icon: new L.icon({ iconUrl: '/public/img/teh/start.svg' }) } ] } }).on('loaded', function(e) { map.fitBounds(e.target.getBounds()); }).addTo(map);
What am I doing wrong?