Leaflet / Leaflet.draw

Vector drawing and editing plugin for Leaflet
https://leaflet.github.io/Leaflet.draw/docs/leaflet-draw-latest.html
MIT License
1.98k stars 994 forks source link

BUG: fixed "ReferenceError: type is not defined" #968

Open iCodr8 opened 5 years ago

iCodr8 commented 5 years ago

The bug occurs when a new rectangle will be created.

iCodr8 commented 5 years ago

@ddproxy Can you please check and merge it?

reblace commented 4 years ago

You can also fix this issue by changing your build target (in tsconfig.json) to "es5." Angular CLI 8/9 moving to a target of es2015 seems to have switched the behavior of this code to throwing an error.

gaojiangtao-git commented 2 months ago

When can this problem merge code

reblace commented 2 months ago

This project hasn't been updated in 6 years. So, I doubt it will ever get merged.