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