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

KM markers? #71

Open samberic opened 5 years ago

samberic commented 5 years ago

Hi, Thanks for your amazing work on this plugin, absolutely fantastic.

Not an issue so much as something I'm trying to figure out; I'd like to display an icon at every km (or mile or whatever). Is this possible at the moment? I know you've already got code to figure out the total distance so I was just wondering if that was made available as each point is plotted? Or if you'd have any tips on how to pull it off (happy to make a PR)

mpetazzoni commented 5 years ago

@samberic see #65. Unfortunately that PR doesn't merge, but if you feel like picking it up and sending an updated version, I'll definitely review it and see about integrating it!

jolbrich commented 5 years ago

There was another pull request that seemed to be working. I was just starting to make something similar as I saw this (#73 ). Was there a reason that this was not merged?