Closed wboykinm closed 10 years ago
Thanks for the clarity of this solution to bindPopup, however I can't seem to use the same logic to apply .setIcon():
.setIcon()
http://bl.ocks.org/wboykinm/9374994
I've also tried specifying it in the eachLayer() function as with bindPopup, but that also fails to change the icon. This is surely a basic screwup on my end; what is it?
eachLayer()
Done: https://www.mapbox.com/mapbox.js/example/v1.0.0/markers-from-csv-custom-style/
Thanks for the clarity of this solution to bindPopup, however I can't seem to use the same logic to apply
.setIcon()
:http://bl.ocks.org/wboykinm/9374994
I've also tried specifying it in the
eachLayer()
function as with bindPopup, but that also fails to change the icon. This is surely a basic screwup on my end; what is it?