-
Notifications
You must be signed in to change notification settings - Fork 339
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
For icons why can we only choose a marker color from a set list and not use a css color code? #89
Comments
Ha! I just stumbled on this myself via folium's documentation and came upstream to understand why. Indeed, why give |
The problem with this script is that it uses big PNG images with the current possible colors. As you can say they use a sprite. So for now it seems impossible to use your own colors. Something that would be solved with a svg marker. |
Wow, so there exists a sprite with all those different colours! |
I thought they had changed them to SVG: (#74) |
Hmm, not sure, I did encounter this problem in the python package Folium. I remade the whole map in JavaScript with BeatifyMarker, though, so don't have that problem any more 😼 |
Yet it is possible to change the color of the icon in the marker to anything
markerColor -> 'red', 'darkred', 'orange', 'green', 'darkgreen', 'blue', 'purple', 'darkpuple', 'cadetblue'
iconColor -> 'white', 'black' or css code (hex, rgba etc)
The text was updated successfully, but these errors were encountered: