Closed tmpacifitech closed 5 years ago
This will depend on how you imported the leaflet-draw plugin. If you did something like:
import * as L from 'leaflet';
import 'leaflet-draw';
Then, you'd reference it as L.Draw.Control
.
Or try
import {
...
Draw,
Control,
DrawEvents
} from 'leaflet';
onMapDrawCreated(drawControl: Control.Draw) {
console.log('add layer');
}
Here Draw.Control not found