change leaflet marker icon dynamically? code example Example: leaflet update marker icon marker.setIcon(<Icon> icon);