leaflet update marker icon from outside map code example Example: leaflet update marker icon marker.setIcon(<Icon> icon);