angular-leaflet-directive
angular-leaflet-directive copied to clipboard
Leaflet heatmap sample does not work; error "_leaflet_id"
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.

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.