-
Notifications
You must be signed in to change notification settings - Fork 361
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
i can't change a clolor of markers or circles? #62
Comments
+1 for this issue. I'm seeing the same thing. |
Same for me. Would be nice to have colours not hard-coded as |
Unfortunately it is not possible to change color of markers in leaflet. But you can change color of a CircleMarker with |
Why can't there be something as simple as in https://github.com/python-visualization/folium: |
Good point. We should look at what is done in Folium. If you feel like doing it please go ahead @deeplook :) That'd be awesome |
Awesome icons only seem to support a fixed set of colors, is that true? I'm getting:
Have there been any updates on this issue since last year? It would be great to be able to use arbitrary colors to represent a continuous variable at discrete locations with markers + a colorbar. Thanks, |
You are right, you can only use a set of colors, simply because those icons are coming from image files. We could add a new kind of marker that accept any kind of RGB color as input. It would indeed be a nice feature. |
I was also looking for a way to change marker colors. This would be a nice feature to add. |
Currently, the only way to change marker colors is by using custom icons, see https://ipyleaflet.readthedocs.io/en/latest/api_reference/icon.html. You can also use the FontAwesome icons, which allows to change the color: https://ipyleaflet.readthedocs.io/en/latest/api_reference/awesome_icon.html |
@martinRenou Many thanks for the info! Will try it out. |
@deeplook https://ipyleaflet.readthedocs.io/en/latest/api_reference/awesome_icon.html#interactions
Can you provide a code sample that replicate the issue? |
Indeed. In LeafletJS the CircleMarker is not a Marker. I opened an issue for a couple of years ago but I don't think they took it into account. You can still observe the |
Yes, but I cannot move the |
I guess it's a limitation of LeafletJS, we cannot do anything about it in ipyleaflet |
My enviroment is ubuntu 14.04/anaconda/jupyter notebook.
I've try to do someting with colours of circlemarkers and markers but nothing changes, colour still blue.
What i can do to fix it?
Thank you!
The text was updated successfully, but these errors were encountered: