bluehalo / ngx-leaflet-draw

MIT License
88 stars 29 forks source link

LeafletUtil library doesn't work for me #67

Closed beubzz closed 5 years ago

beubzz commented 5 years ago

on file @asymmetrik\ngx-leaflet-draw\dist\leaflet-draw\core\leaflet-draw.directive.js. On the line 13, if it's possible to change this line : import { LeafletDirective, LeafletDirectiveWrapper, LeafletUtil } from '@asymmetrik/ngx-leaflet';

Into this two line : import { LeafletDirective, LeafletDirectiveWrapper } from '@asymmetrik/ngx-leaflet'; import { LeafletUtil } from '@asymmetrik/ngx-leaflet/dist/leaflet/core/leaflet.util';

Other way, the leafletUtil library doesn't work for me ...

BartoszKubica commented 5 years ago

Yea, it's true. Angular CLI can not find this class with an existing import.

reblace commented 5 years ago

The latest version of @asymmetrik/ngx-leaflet exports LeafletUtil correctly, so you shouldn't need this change for it to work. Can you verify you're using at least @asymmetrik/ngx-leaflet@5.0.1?

beubzz commented 5 years ago

Yeah ! perfect, it's working for me now ! thanks a lot ! And i didn't use @asymmetrik/ngx-leaflet@5.0.1 because i'm using Angular 6 and the @asymmetrik/ngx-leaflet@5.0.1 is for Angular 7 right ? And i try it with Angular 7 and @asymmetrik/ngx-leaflet@5.0.1 and is working perfectly And in my case (Angular6 and @asymmetrik/ngx-leaflet@4.0.0) that's working perflectly right now so many thanks for your reactivity ;)

reblace commented 5 years ago

Should be fixed now.

falco442 commented 5 years ago

I'm using the v4.0.0. What am I supposed to do?

reblace commented 5 years ago

v4 of ngx-leaflet?