Open amalshehu opened 7 years ago
@amalshehu One thing to try is to use either leaflet-dvf.js
or leaflet-dvf.markers.js
, not both. leaflet-dvf.js
has everything in leaflet-dvf.markers.js
, so you don't need both, and importing both usually causes issues. If you just want the Leaflet DVF markers and nothing else, use leaflet-dvf.markers.js
. I assume you're importing Leaflet as well?
Great info, I will check this.
This issue happens if leaflet.js is not included before leaflet-dvs.js. I managed to resolve it by adding leaflet.js to the angular.cli.json before leaflet-dvf.js
I'm using leaflet-dvf in my angular 2 project.
I tried to integrate leaflet-dvf in my angular 2 application.
I added its scripts on index.html
index.html
map.component.ts
But I'm getting the following error