Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

import for angular 4.0.0 #12

Open
f7o opened this issue May 24, 2017 · 0 comments
Open

import for angular 4.0.0 #12

f7o opened this issue May 24, 2017 · 0 comments

Comments

@f7o
Copy link

f7o commented May 24, 2017

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();

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant