-
Notifications
You must be signed in to change notification settings - Fork 86
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
Polyline layer turns black after turning off all legend filters on custom colors #279
Comments
Partially solved. An option in
But |
@hupe13 it might be that you need to use a different property name (not all css properties are mapped the same way on the js side): leaflet-elevation/src/control.js Lines 519 to 554 in bd9316b
|
I have given up doing it this way. It's too complicated for me. I set Thank you very much. |
@hupe13 At first glance, leaflet-elevation/src/control.js Line 543 in bd9316b
For more info: |
Hi Raruto,
the solution of this issue works with default themes and colors only. For custom colors like in your example with a custom theme it doesn't work.
The track is black, if preferCanvas is false and if I turn all legend filters off.
If I set preferCanvas to true, the color of the track is black from the beginning and does not change.
I think, I have to change something for opt.colors:
leaflet-elevation/src/utils.js
Lines 4 to 12 in bd9316b
leaflet-elevation/src/control.js
Line 205 in bd9316b
How should I do that?
Thank you very much.
The text was updated successfully, but these errors were encountered: