tombatossals / angular-leaflet-directive

AngularJS directive to embed an interact with maps managed by Leaflet library
http://tombatossals.github.io/angular-leaflet-directive
MIT License
1.5k stars 637 forks source link

Leaflet heatmap sample does not work; error "_leaflet_id" #1091

Open sepideh68 opened 8 years ago

sepideh68 commented 8 years ago

Hi, I am having trouble with heatmap overlay. When I use the sample code in github it doesn't work at all. the only thing it shows me is a map and this error: Cannot read property '_leaflet_id' of undefined. I have attached the picture of what I have done. Please help me in this regard since I have a coming deadline to show heatmap on my project. leaflet-heat

mehdimo commented 8 years ago

Seems some part of documentation has not been updated to reflect the changes in distribution. By the way, I am guessing you are using outdated js libraries. Make sure your javascript files specifically leaflet-heat.js are consistent with those of samples. Best way is to get your js files from http://tombatossals.github.io/angular-leaflet-directive/bower_components/... as indicated in the sample files.