w8r / leaflet-area-select

Control to just select an area and provide bbox for it
https://w8r.github.io/leaflet-area-select/
MIT License
35 stars 16 forks source link

import for angular 4.0.0 #12

Open f7o opened 7 years ago

f7o commented 7 years ago

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 otherwise let map2 = (map as any); map2.selectArea.enable();