I am using Google JavaScript API with geocoding and heatmap. But I am having some trouble. Here is my script:
content of coords.js:
eqfeed_callback()
My question is, why I can not call the function heatMapVisualize()
anywhere else except the eqfeed_callback function. When I put the function call of heatMapVisualize()
somewhere else, it will not do it. How ever the eqfeed_callback is empty.
My second question which is depending on the first one. How can I get rid of this function theese lines:
var script = document.createElement('script');
script.src = 'https://www.stud.fit.vutbr.cz/~xhalin01/BP/coords.js';
document.getElementsByTagName('head')[0].appendChild(script);
I dont need them anymore. There I used to store the locations for heatmapdata, but now I do it via Google Geocoder. I am new to Javascript so excuse my dumb question But I will put bounty on this.