org-arl / leaflet-tracksymbol2

Leaflet plugin for showing tracks with heading, course and speed.
https://org-arl.github.io/leaflet-tracksymbol2/
MIT License
7 stars 0 forks source link

Track symbol stays below the route (polyline) #2

Closed alexhuynh7 closed 9 months ago

alexhuynh7 commented 9 months ago

I showed the track symbol on the map (as a vessel). Somehow, it always stays below the polyline. It looks like there are some issues with zIndex. Does anyone have any idea? image

ngyewch commented 9 months ago

The polyline was probably added to the map after the track symbol.

Try adding the track symbol to the map after the polyline. Do take groups into consideration (LayerGroup, FeatureGroup).

alexhuynh7 commented 9 months ago

Thank @ngyewch. Your solution worked well.