Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Track colors #55

Closed
marcocasadio opened this issue Apr 16, 2017 · 1 comment
Closed

Track colors #55

marcocasadio opened this issue Apr 16, 2017 · 1 comment

Comments

@marcocasadio
Copy link

Hi,
I have multiple GPX to show on maps. Is possibile? And can I choose the color for each track on map?

Thanks,
Marco

@mpetazzoni
Copy link
Owner

mpetazzoni commented Apr 21, 2017

I realize it's not documented, but it is supported. You need to set polyline_options in your options, similar to the following example:

L.GPX(url, {polyline_options: {color: 'red'}});

If you feel like submitting a PR to add some info about this in the README, that'd be awesome!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants