Tag Info

New answers tagged


Figured it out thanks to some documentation reading. The polygon in leaflet responds to setStyle but the marker can be changed using setIcon Documentation for setIcon


Seems like you can't do that because a marker uses an image to render. I think you'd need to grab the icon class of your marker and change the "iconUrl" attribute to whatever new image you want. Source: Leaflet API Reference Hope that helps, DR


It may be that the symbol depends on certain files that are unavailable on your laptop... Check if it uses a particular font. Check that linked

Top 50 recent answers are included