Skip to content

Point matchers don't work #106

@vmaysov

Description

@vmaysov

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?

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions