Is there a way to prevent leaflet draw from going past a bounds? Currently I am setting the values via a function. If the longitude goes past -180/180 the form field is set to -180/180 respectively.
if(e.layer._bounds._southWest.lng < -180){ e.layer._bounds._southWest.lng = -180;}
if(e.layer._bounds._northEast.lng > 180){e.layer._bounds._northEast.lng=180;}