bluehalo / ngx-leaflet-draw

MIT License
88 stars 29 forks source link

Error when trying to draw a rectangle #78

Closed caiusCitiriga closed 5 years ago

caiusCitiriga commented 5 years ago

I've tried everything, versions change, importing the modules .forRoot() and not, adding the js files in my angular.json file, remove node_modules, reinstall them, followed the guide on @ngx-leaflet-draw from scratch a hundred times.

No matter what I do, when I try to draw a rectangle it always throws this error:

enter image description here

Even though the handlers are present and ALL of them works perfectly except for the rectangle one (the only one I need)

enter image description here

I don't even know how to provide you with more specific informations if not for this:

I'm stuck on this stupid error and I don't know how to get over it. Please help! Please, if you need more information just ask.

reblace commented 5 years ago

Answered on stack overflow: https://stackoverflow.com/questions/57433144/leaflet-draw-on-rectangle-draw-it-throws-error