Open f7o opened 7 years ago
this does not work for angular 4.0.0 and @angular/cli import SelectArea from 'leaflet-area-select';
import SelectArea from 'leaflet-area-select';
following works, but only with a not really pretty hack import * as L from 'leaflet'; import 'leaflet-area-select';
import * as L from 'leaflet';
import 'leaflet-area-select';
webpack integrated in ng does not compile otherwise let map2 = (map as any); map2.selectArea.enable();
ng
let map2 = (map as any);
map2.selectArea.enable();
this does not work for angular 4.0.0 and @angular/cli
import SelectArea from 'leaflet-area-select';
following works, but only with a not really pretty hack
import * as L from 'leaflet';
import 'leaflet-area-select';
webpack integrated in
ng
does not compile otherwiselet map2 = (map as any);
map2.selectArea.enable();