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

font awesome image corrupted #83

Open
m4ucoder opened this issue Feb 26, 2017 · 1 comment
Open

font awesome image corrupted #83

m4ucoder opened this issue Feb 26, 2017 · 1 comment

Comments

@m4ucoder
Copy link

I'm using font awesome 4.7.0. For some reason, default iconColor (white) provoques an error.

// Error : using default color (default is "white")
L.AwesomeMarkers.icon({icon: 'tv', prefix: 'fa', markerColor: 'darkred'})
// Error : using explicitelly white color
L.AwesomeMarkers.icon({icon: 'tv', prefix: 'fa', markerColor: 'darkred', iconColor:'white'})
// OK : using explicitelly hexadecimal notation for white color
L.AwesomeMarkers.icon({icon: 'tv', prefix: 'fa', markerColor: 'darkred', iconColor:'#fff'})

A workarround is to remove the possibility of using class "white-icon" (or "black-icon") in the code (+/- on the line : #71, in the file ~/leaflet.awesome-markers.js)
ps_3_ok
ps_nok

.
For the moment, using hexadecimal values always works.

@EdwinChua
Copy link

This is still a problem :( I manually match the white color string, and offset to #fffffc.

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