mpetazzoni / leaflet-gpx

A GPX track plugin for Leaflet.js
http://mpetazzoni.github.io/leaflet-gpx
BSD 2-Clause "Simplified" License
529 stars 114 forks source link

Change the colour of the first X meters of the track #140

Closed codemwnci closed 1 year ago

codemwnci commented 1 year ago

Is it possible to have a different colour for the GPX route for the first X meters?

mpetazzoni commented 1 year ago

Not within a given track segment; you'd need to use different segments, each with their own styling definition, as explained in https://github.com/mpetazzoni/leaflet-gpx#line-styling.