mapbox / leaflet-omnivore

universal format parser for Leaflet & Mapbox.js
https://www.mapbox.com/mapbox.js/example/v1.0.0/omnivore-gpx/
Other
651 stars 126 forks source link

Hello World for .setIcon() #10

Closed wboykinm closed 10 years ago

wboykinm commented 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():

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?

tmcw commented 10 years ago

Done: https://www.mapbox.com/mapbox.js/example/v1.0.0/markers-from-csv-custom-style/