Layer property type


#1

Hi,
I have this error using leaflet draw on ionic application :
Property ‘layer’ does not exist on type ‘LeafletEvent’.

this is the code :
this.map.on(‘draw:created’, function(e) {
var layer = e.layer;
drawnItems.addLayer(layer);
});

Please any solution ?
Thanks


#2
var layer = e.layer;

#3

So please how will i get drawn layer then ?