-
Notifications
You must be signed in to change notification settings - Fork 114
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
Markers Color #106
Comments
|
Thanks for this. Where do you get feature.properties.color from? Also is ti possible to have a custom marker (perhaps svg) instead of arrow head? Thanks |
The idea is to have each marker to have a color based on some variable. Say, red for high, green for normal, yellow for low and so on. |
@mugambi40 you don't need SVG. You have the props color und there you can change your current color. |
Without your code, I cannot help you. |
@miko866 below is my code `var multiCoords1 = [ var icon = L.divIcon({ });
` |
I use Vue.js but the logic is the same you muss only the code little change. Marker Icon: Then you can dynamically load your new iconUrl depends on the data and simply show it. |
Hey @miko866 |
How do I add different status colors to the markers? Like, I have icons with different status which should be displayed with different colors.
The text was updated successfully, but these errors were encountered: