I am trying this source code below in my webserver to build a page with the Heat Maps API however not loading anything. I install the Firebug and it shows me this error : "a has no properties in main.js (line 276)"
The source : <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http:// www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas- microsoft-com:vml"> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"/ > <title>Google Maps</title> <script src="http://www.heatmapapi.com/javascript/HeatmapAPI2.aspx? k=07391757-6209-4625-b8a6-add063ab7c94" type="text/javascript"></ script> <script src="http://maps.google.com/maps? file=api&v=2&key=ABQIAAAAHonkVQCejOuoYoJB5stcxhSzr2cVR4OHcxd- lliTvpnN6meXRhQqCW5zcmPcSjEed13wcVE1gNNjjA" type="text/javascript"></ script> <script src="http://www.heatmapapi.com/javascript/ HeatmapAPIGoogle2.js" type="text/javascript"></script> </head> <body> <input type="hidden" id="HMMapdata" /> <input type="hidden" name="HMImageURL" id="HMImageURL" /> <script type="text/javascript"> var m = null; function loadGoogle() { if (GBrowserIsCompatible()) { m = new GMap2(document.getElementById("map")); m.addControl(new GLargeMapControl()); m.addControl(new GMapTypeControl()); m.setCenter(new GLatLng(39.04, -103.96), 11); initHeatmap(); } else alert('Your Internet browser is not compatible with this website.'); } setTimeout('loadGoogle()', 1); function initHeatmap() { // Heatmap Scripts try { var myHM = new GEOHeatmap(); myHM.Init(400, 300); // Step 1 // tip try myHM.Init(200, 150); // half size will stretch, much faster var data = new Array(); // Generate random lat/lon and value points for(p=0;p<50;p++) { var rLatD=Math.floor(Math.random()*1000); var rLonD=Math.floor(Math.random()*1000); var rValD=Math.floor(Math.random()*10); data.push(39+(rLatD/15000)); data.push(-104+(rLonD/15000)); data.push(rValD); } myHM.SetData(data); // Step 2 myHM.SetBoost(1); // Optional, see documentation myHM.SetDecay(0); // (NEW) Optional, see documentation var proxyURL = 'http://webmaps.net46.net/heatmaps/ heatMap1.html'; // Optional for cross-domain myHM.SetProxyURL(proxyURL); // Step 2b // Optional // for cross-domain var preUrl = myHM.GetURL(); // Step 3 // Now render in our Google Map var heatmapOverlay = new HMGoogleOverlay(preUrl); m.addOverlay(heatmapOverlay); } catch(e) { alert(e.Message); } } </script> </body> </html> I already this error however now I don“t know where is located. Thanks. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Maps API" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Maps-API?hl=en -~----------~----~----~----~------~----~------~--~---
