change rectangle marker leaflet code example Example: leaflet change marker location marker.setLatLng(e.latlng);