lettype=e.layerType;// from the example; isn't used right now, but may be relevant in the future
letlayer=e.layer;
letlayer=e.layer;
letgeoJSON=layer.toGeoJSON();
letgeoJSON=layer.toGeoJSON();
console.log(JSON.stringify(geoJSON,null,4));// makes the output readable in the console
console.log(JSON.stringify(geoJSON,null,4));// makes the output readable in the console
this._onChange();
}
}
render(){
render(){
return (
return (
// "It's important to wrap EditControl component into FeatureGroup component from react-leaflet. The elements you draw will be added to this FeatureGroup layer, when you hit edit button only items in this layer will be edited."
// "It's important to wrap EditControl component into FeatureGroup component from react-leaflet. The elements you draw will be added to this FeatureGroup layer, when you hit edit button only items in this layer will be edited."