mpetazzoni / leaflet-gpx

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

Allow more GPX stylings #122

Closed cyclingcat closed 3 years ago

cyclingcat commented 3 years ago

Supports three more styling options for the GPX polylines, including "dashArray" for showing dashed track lines.

The cycling cat

cyclingcat commented 3 years ago

Just noticed a small case mismatch: The GPX style schema documentation defines dasharray while Leaflet's path options uses dashArray. The path options lineJoin and dashOffset don't have associated GPX style definitions, so besides correcting the case for dasharray I changed the tag names for the three new tags to all-lowercase for consistency reasons.

The cycling cat