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

For icons why can we only choose a marker color from a set list and not use a css color code? #89

Open
olly-writes-code opened this issue Sep 8, 2017 · 5 comments

Comments

@olly-writes-code
Copy link

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)

@jwhendy
Copy link

jwhendy commented Nov 22, 2017

Ha! I just stumbled on this myself via folium's documentation and came upstream to understand why.

Indeed, why give hex flexibility the outline color but not the fill? This would be really helpful as I'm defining other fill colors via a list of hex colors for a polygon. It would be nice to specify that my marker is color_list[i], just like I do with my polygon.

@tvdsluijs
Copy link

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.

@Sti2nd
Copy link

Sti2nd commented Nov 30, 2018

Wow, so there exists a sprite with all those different colours!

@victorhdc
Copy link

I thought they had changed them to SVG: (#74)

@Sti2nd
Copy link

Sti2nd commented Feb 21, 2019

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 😼

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

5 participants