microsoft / BingMapsV8CodeSamples

This is a collection of over two hundred code samples an growing for the Bing Maps V8 web control.
https://samples.bingmapsportal.com/
MIT License
145 stars 127 forks source link

Samples/Heatmap Layers/Heatmap_Features.html doesn't display a heatmap #28

Closed jkpratt closed 3 years ago

jkpratt commented 4 years ago

I tried running the heatmap at https://bingmapsv8samples.azurewebsites.net/#Heatmap_Features, when you press update heatmap , nothing happens. I tried setting the options in many ways but nothing changes. It seems that the heatmap layer isn't dynamically updating neither the locations array nor the heatmapOptions object. Is is possible to dynamically update?

jkpratt commented 4 years ago

There is an error with the selector function. I fixed that error and instead of using 0 location points upon start I used 5000 and the heatmap displayed. But changing the options has no affect what so ever. Can a heatmap be dynamically updated.

VM425:117 Uncaught TypeError: Failed to execute 'item' on 'NodeList': 1 argument required, but only 0 present. at getSelectedValue (:117:52) at UpdateHeatMap (:63:20) at HTMLInputElement.onclick ((index):1)

jkpratt commented 4 years ago

I thought i had fixed the above error. I revisited the issue, fixed it and now heatmap updates correctly. It wasn't pulling the values from the selectors so hence no updating.

IoTGirl commented 3 years ago

Thanks for following up!