Unable to use Leaflet drawing manager with leaflet-routing-machine-here

61 views
Skip to first unread message

Tanishq Sharma

unread,
Feb 6, 2023, 6:42:05 AM2/6/23
to Leaflet
I want to enable drawing manager functionality to draw shapes and in another functionality I want to use routing between a source and destination with the help of here-routing-engine.

I'm getting an error "Uncaught TypeError: leaflet__WEBPACK_IMPORTED_MODULE_0__.Control.Draw is not a constructor" everytime when I import leaflet-routing-machine, lrm-here, leaflet-routing-machine-here in my code when I try to use L.Control.Draw to enable drawing manager.

However, the code works perfectly fine for each case if I use only drawing manager related libraries or if I use only leaflet routing-machine libraries . 
I want to support both functionality in my code.
Please help

Thanks.
Reply all
Reply to author
Forward
0 new messages