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