Heatmap with too many points throws SyntaxError

(3 posts) (2 voices)

Tags:

No tags yet.

  1. maron, Member

    Hi.

    I have a heatmap with 100's of datapoints - that generates the following code

    <div class="map_wrapper"><div class="subtitle" style="text-align: center;padding-bottom:2px;">Heatmap</div><div id="map5" class="mydbr_googlemap" style="margin-left:auto;margin-right:auto;border:thin solid #bbb; width:800px; height:600px">Generating the map...</div></div><script>//<![CDATA[ var ext_gm_map5=Google_map.init_map('5',0,0,0,'roadmap',false);var ext_gm_points5 = new Array();var ext_gm_locations5 = [{location: new google.maps.LatLng(64.1087694, -21.841821), weight:50},{location: new google.maps.LatLng(64.1543469, -21.9516863), weight:50},{location: new google.maps.LatLng(64.0951968, -21.8279988), weight:50},{location: new google.maps.LatLng(64.0951975, -21.8279959), weight:50},{location: new google.maps.LatLng(64.0913729, -21.8142937), weight:50},{location: new google.maps.LatLng(64.0913729, -21.8142937), weight:50},{location: new google.maps.LatLng(64.131693, -21.9082661), weight:50},{location: new google.maps.LatLng(64.1569767, -21.7573), weight:50},{location: new google.maps.LatLng(64.1100928, -21.8588112), weight:50},{location: new google.maps.LatLng(64.1690897, -21.6937358), weight:50},{location: new google.maps.LatLng(64.1322983, -21.87315), weight:50},{location: new google.maps.LatLng(64.1338, -21.8675183), weight:50},{location: new google.maps.LatLng(64.1338, -21.8675183), weight:50},{location: new google.maps.LatLng(64.147428, -21.9638716), weight:50},{location: new google.maps.LatLng(64.1088788, -21.8428364), weight:50},{location: new google.maps.LatLng(64.1273683, -21.8694883), weight:50},{location: new google.maps.LatLng(64.1442017, -21.953155), weight:50},{location: new google.maps.LatLng(64.0598315, -21.9694332), weight:50},{location: new google.maps.LatLng(64.15429, -21.9514367), weight:50},{location: new google.maps.LatLng(64.0993352, -21.8743763), weight:50},{location: new google.maps.LatLng(64.1376355, -21.9506029), weight:50},{location: new google.maps.LatLng(64.1497617, -21.9762183), weight:50},{location: new google.maps.LatLng(64.1438727, -21.9042202), weight:50},{location: new google.maps.LatLng(64.1399456, -21.901086), weight:50},{location: new google.maps.LatLng(64.1411743, -21.9058207), weight:50},{location: new google.maps.LatLng(64.1400493, -21.8862582), weight:50},{location: new google.maps.LatLng(64.1411817, -21.9057433), weight:50},{location: new google.maps.LatLng(64.1337611, -21.884727), weight:50},{location: new google.maps.LatLng(64.1337512, -21.8676071), weight:50},{location: new google.maps.LatLng(64.1337512, -21.8676071), weight:50},{location: new google.maps.LatLng(64.1438783, -21.9355633), weight:50},{location: new google.maps.LatLng(64.1398116, -21.8831446), weight:50},{location: new google.maps.LatLng(64.1044522, -21.8335629), weight:50},{location: new google.maps.LatLng(64.1398673, -21.8869721), weight:50},{location: new google.maps.LatLng(64.1465825, -21.9395392), weight:50},{location: new google.maps.LatLng(64.1543696, -21.9511143), weight:50},{location: new google.maps.LatLng(64.1083613, -21.8420171), weight:50},{location: new google.maps.LatLng(64.1475439, -21.9608547), weight:50},{location: new google.maps.LatLng(64.1114521, -21.8769480), weight:50},{location: new google.maps.LatLng(64.1242849, -21.8291932), weight:50},{location: new google.maps.LatLng(64.1323335, -21.8730291), weight:50},{location: new google.maps.LatLng(64.1542583, -21.9515283), weight:50},{location: new google.maps.LatLng(64.1345125, -21.8956782), weight:50},{location: new google.maps.LatLng(64.0966263, -21.8898239), weight:50},{location: new google.maps.LatLng(64.1233747, -21.9020482), weight:50},{location: new google.maps.LatLng(64.1143414, -21.8956912), weight:50},{location: new google.maps.LatLng(64.1309702, -21.8881780), weight:50},{location: new google.maps.LatLng(64.1509804, -21.9449884), weight:50},{location: new google.maps.LatLng(64.1332016, -21.8037907), weight:50},{location: new google.maps.LatLng(64.1443898, -21.9512523), weight:50},{location: new google.maps.LatLng(64.1487733, -21.7807367), weight:50},{location: new google.maps.LatLng(64.1497659, -21.9659023), weight:50},{location: new google.maps.LatLng(64.1480907, -21.9645349), weight:50},{location: new google.maps.LatLng(64.1288433, -21.8106867), weight:50},{location: new google.maps.LatLng(64.1143967, -21.8974050), weight:50},{location: new google.maps.LatLng(64.1073615, -21.8602300), weight:50},{location: new google.maps.LatLng(64.1404945, -21.9197196), weight:50},{location: new google.maps.LatLng(64.1423486, -21.931466), weight:50},{location: new google.maps.LatLng(64.0987583, -21.7791217), weight:50},{location: new google.maps.LatLng(64.1353051, -21.9122236), weight:50},{location: new google.maps.LatLng(64.1026462, -21.8831869), weight:50},{location: new google.maps.LatLng(64.1100754, -21.8589445), weight:50},{location: new google.maps.LatLng(64.0990008, -21.9018839), weight:50},{location: new google.maps.LatLng(64.143676, -21.9343351), weight:50},{location: new google.maps.LatLng(64.1321399, -21.8566616), weight:50},{location: new google.maps.LatLng(64.141305, -21.9058933), weight:50},{location: new google.maps.LatLng(64.0780934, -21.9494636), weight:50},{location: new google.maps.LatLng(64.150744, -21.9642697), weight:50},{location: new google.maps.LatLng(64.1087217, -21.8424321), weight:50},{location: new google.maps.LatLng(64.0721397, -21.9403987), weight:50},{location: new google.maps.LatLng(64.1511338, -21.9872162), weight:50},{location: new google.maps.LatLng(64.144985, -21.9251283), weight:50},{location: new google.maps.LatLng(64.1132979, -21.8728286), weight:50},{location: new google.maps.LatLng(64.139932, -21.8850617), weight:50},{location: new google.maps.LatLng(64.1433967, -21.9598517), weight:50},{location: new google.maps.LatLng(64.1296907, -21.8938981), weight:50},{location: new google.maps.LatLng(64.0756483, -21.9519008), weight:50},{location: new google.maps.LatLng(64.154311, -21.9514659), weight:50},{location: new google.maps.LatLng(64.1533067, -21.9494417), weight:50},{location: new google.maps.LatLng(64.0580790, -21.9820081), weight:50},{location: new google.maps.LatLng(64.1334228, -21.8588757), weight:50},{location: new google.maps.LatLng(64.0691616, -21.9068412), weight:50},{location: new google.maps.LatLng(64.1470276, -21.9282633), weight:50},{location: new google.maps.LatLng(64.1470276, -21.9282633), weight:50},{location: new google.maps.LatLng(64.103129, -21.8811146), weight:50},{location: new google.maps.LatLng(64.1086161, -21.8420462), weight:50},{location: new google.maps.LatLng(64.1083906, -21.8410595), weight:50},{location: new google.maps.LatLng(64.1017533, -21.8367733), weight:50},{location: new google.maps.LatLng(64.1325549, -21.8182689), weight:50},{location: new google.maps.LatLng(64.1439905, -21.9546188), weight:50},{location: new google.maps.LatLng(64.0475483, -21.9744113), weight:50},{location: new google.maps.LatLng(64.0993595, -21.875144), weight:50},{location: new google.maps.LatLng(64.1250989, -21.8096663), weight:50},{location: new google.maps.LatLng(64.0922594, -21.8922478), weight:50},{location: new google.maps.LatLng(64.126685, -21.738995), weight:50},{location: new google.maps.LatLng(64.1363446, -21.7376847), weight:50},{location: new google.maps.LatLng(64.1256762, -21.7953532), weight:50},{location: new google.maps.LatLng(64.1414507, -21.8944714), weight:50},{location: new google.maps.LatLng(64.1414602, -21.8944869), weight:50},{location: new google.maps.LatLng(64.1269583, -21.895823), weight:50},{location: new google.maps.LatLng(64.1467209, -21.9555629), weight:50},{location: new google.maps.LatLng(64.1260591, -21.7434164), weight:50},{location: new google.maps.LatLng(64.1234655, -21.9017138), weight:50},{location: new google.maps.LatLng(64.1412217, -21.9059883), weight:50},{location: new google.maps.LatLng(64.1046983, -21.87606), weight:50},{location: new google.maps.LatLng(64.1297903, -21.8951451), weight:50},{location: new google.maps.LatLng(64.0954066, -21.8534833), weight:50},{location: new google.maps.LatLng(64.1322863, -21.8731416), weight:50},{location: new google.maps.LatLng(64.0992608, -21.8745651), weight:50},{location: new google.maps.LatLng(64.1451817, -21.8616017), weight:50},{location: new google.maps.LatLng(64.1021328, -21.8843197), weight:50},{location: new google.maps.LatLng(64.1182546, -21.8016865), weight:50},{location: new google.maps.LatLng(64.1494757, -21.8758876), weight:50},{location: new google.maps.LatLng(64.0851956, -21.8492993), weight:50},{location: new google.maps.LatLng(64.1087567, -21.8431017), weight:50},{location: new google.maps.LatLng(64.1088087, -21.8428937), weight:50},{location: new google.maps.LatLng(64.1338231, -21.8678466), weight:50},{location: new google.maps.LatLng(64.1338231, -21.8678466), weight:50},{location: new google.maps.LatLng(64.1135077, -21.9250056), weight:50},{location: new google.maps.LatLng(64.1087927, -21.8414879), weight:50},{location: new google.maps.LatLng(64.1087927, -21.8414879), weight:50},{location: new google.maps.LatLng(64.0979158, -21.9196292), weight:50},{location: new google.maps.LatLng(64.1074, -21.8518953), weight:50},{location: new google.maps.LatLng(64.135481, -21.8727601), weight:50},{location: new google.maps.LatLng(64.135481, -21.8727601), weight:50},{location: new google.maps.LatLng(64.1078591, -21.8938188), weight:50},{location: new google.maps.LatLng(64.1192643, -21.857786), weight:50},{location: new google.maps.LatLng(64.1206133, -21.8147317), weight:50},{location: new google.maps.LatLng(64.0573767, -21.9484850), weight:50},{location: new google.maps.LatLng(64.1102155, -21.9010865), weight:50},{location: new google.maps.LatLng(64.1464029, -21.9279316), weight:50},{location: new google.maps.LatLng(64.1432033, -21.9128067), weight:50},{location: new google.maps.LatLng(64.1416641, -21.9345501), weight:50},{location: new google.maps.LatLng(64.1279543, -21.7305624), weight:50},{location: new google.maps.LatLng(64.1447734, -21.8983883), weight:50},{location: new google.maps.LatLng(64.134715, -21.9047567), weight:50},{location: new google.maps.LatLng(64.0920866, -21.9118416), weight:50},{location: new google.maps.LatLng(64.1013659, -21.8802212), weight:50},{location: new google.maps.LatLng(64.1399240, -21.8870663), weight:50},{location: new google.maps.LatLng(64.09429, -21.9010183), weight:50},{location: new google.maps.LatLng(64.149495, -21.940615), weight:50},{location: new google.maps.LatLng(64.149495, -21.940615), weight:50},{location: new google.maps.LatLng(64.1297904, -21.8754911), weight:50},{location: new google.maps.LatLng(64.1297659, -21.8755016), weight:50},{location: new google.maps.LatLng(64.1542908, -21.9511667), weight:50},{location: new google.maps.LatLng(64.1542908, -21.9511667), weight:50},{location: new google.maps.LatLng(64.1318158, -21.7946352), weight:50},{location: new google.maps.LatLng(64.1327847, -21.8730066), weight:50},{location: new google.maps.LatLng(64.1328108, -21.8729857), weight:50},{location: new google.maps.LatLng(64.14732, -21.9725883), weight:50},{location: new google.maps.LatLng(64.123166, -21.872921), weight:50},{location: new google.maps.LatLng(64.123166, -21.872921), weight:50},{location: new google.maps.LatLng(64.1327842, -21.9208941), weight:50},{location: new google.maps.LatLng(64.1309568, -21.8727981), weight:50},{location: new google.maps.LatLng(64.1213727, -21.8972327), weight:50},{location: new google.maps.LatLng(64.1222174, -21.8902586), weight:50},{location: new google.maps.LatLng(64.1556182, -22.0067859), weight:50},{location: new google.maps.LatLng(64.1334833, -21.858585), weight:50},{location: new google.maps.LatLng(64.1541767, -21.951515), weight:50},{location: new google.maps.LatLng(64.1399833, -21.8845917), weight:50},{location: new google.maps.LatLng(64.1475454, -21.9767485), weight:50},{location: new google.maps.LatLng(64.1497417, -21.9555017), weight:50},{location: new google.maps.LatLng(64.1012733, -21.88104), weight:50},{location: new google.maps.LatLng(64.1318233, -21.87388), weight:50},{location: new google.maps.LatLng(64.1405817, -21.912685), weight:50},{location: new google.maps.LatLng(64.1373949, -21.8974824), weight:50},{location: new google.maps.LatLng(64.1385393, -21.9336667), weight:50},{location: new google.maps.LatLng(64.1251358, -21.8202182), weight:50},{location: new google.maps.LatLng(64.1251358, -21.8202182), weight:50},{location: new google.maps.LatLng(64.1137900, -21.88282), weight:50},{location: new google.maps.LatLng(64.1381904, -21.9299944), weight:50},{location: new google.maps.LatLng(64.144895, -21.9048167), weight:50},{location: new google.maps.LatLng(64.1242133, -21.829095), weight:50},{location: new google.maps.LatLng(64.1477344, -21.864414), weight:50},{location: new google.maps.LatLng(64.138762, -21.8902667), weight:50},{location: new google.maps.LatLng(64.1401604, -21.9011196), weight:50},{location: new google.maps.LatLng(64.1046777, -21.8762123), weight:50},{location: new google.maps.LatLng(64.1021171, -21.8841786), weight:50},{location: new google.maps.LatLng(64.1499217, -21.942705), weight:50},{location: new google.maps.LatLng(64.1478067, -21.779935), weight:50},{location: new google.maps.LatLng(64.1483987, -21.9645039), weight:50},{location: new google.maps.LatLng(64.1270378, -21.8961245), weight:50},{location: new google.maps.LatLng(64.1334283, -21.9041626), weight:50},{location: new google.maps.LatLng(64.1075514, -21.8282097), weight:50},{location: new google.maps.LatLng(64.1431196, -21.8536061), weight:50},{location: new google.maps.LatLng(64.1408733, -21.91488 m), weight:50},{location: new google.maps.LatLng(64.1208755, -21.9006477), weight:50},{location: new google.maps.LatLng(64.1408733, -21.91488), weight:50},{location: new google.maps.LatLng(64.1364683, -21.87866), weight:50},{location: new google.maps.LatLng(64.1208833, -21.9013118), weight:50},{location: new google.maps.LatLng(64.1402883, -21.9250733), weight:50},{location: new google.maps.LatLng(64.1323192, -21.872955), weight:50},{location: new google.maps.LatLng(64.1326587, -21.893537), weight:50},{location: new google.maps.LatLng(64.1360667, -21.9064533), weight:50},{location: new google.maps.LatLng(64.1399805, -21.8842262), weight:50},{location: new google.maps.LatLng(64.1020506, -21.8748035), weight:50},{location: new google.maps.LatLng(64.1437043, -21.8909213), weight:50},{location: new google.maps.LatLng(64.0982451, -21.8672815), weight:50},{location: new google.maps.LatLng(64.1245533, -21.8921533), weight:50},{location: new google.maps.LatLng(64.147855, -21.9412817), weight:50},{location: new google.maps.LatLng(64.0830033, -21.90658), weight:50},{location: new google.maps.LatLng(64.1401392, -21.884214), weight:50},{location: new google.maps.LatLng(64.1486677, -21.8823852), weight:50},{location: new google.maps.LatLng(64.1240066, -21.8791), weight:50},{location: new google.maps.LatLng(64.1240066, -21.8791), weight:50},{location: new google.maps.LatLng(64.0995477, -21.8439328), weight:50},{location: new google.maps.LatLng(64.1090646, -21.8420772), weight:50},{location: new google.maps.LatLng(64.1304532, -21.8645035), weight:50},{location: new google.maps.LatLng(64.1463917, -21.9309217), weight:50},{location: new google.maps.LatLng(64.1304664, -21.8644473), weight:50},{location: new google.maps.LatLng(64.1063211, -21.8615859), weight:50},{location: new google.maps.LatLng(64.1278599, -21.8634378), weight:50},{location: new google.maps.LatLng(64.1430507, -21.9128862), weight:50},{location: new google.maps.LatLng(64.143845, -21.9675017), weight:50},{location: new google.maps.LatLng(64.1422466, -21.8546366), weight:50},{location: new google.maps.LatLng(64.1422466, -21.8546366), weight:50},{location: new google.maps.LatLng(64.0960138, -21.8570628), weight:50},{location: new google.maps.LatLng(64.1349969, -21.9102972), weight:50},{location: new google.maps.LatLng(64.1131909, -21.8824165), weight:50},{location: new google.maps.LatLng(64.1387233, -21.9588467), weight:50},{location: new google.maps.LatLng(64.1013717, -21.824095), weight:50},{location: new google.maps.LatLng(64.13365, -21.7998899), weight:50},{location: new google.maps.LatLng(64.1460821, -21.7771722), weight:50},{location: new google.maps.LatLng(64.1460805, -21.7771714), weight:50},{location: new google.maps.LatLng(64.1009598, -21.8617577), weight:50},{location: new google.maps.LatLng(64.0992858, -21.8746781), weight:50},{location: new google.maps.LatLng(64.1454054, -21.8570613), weight:50},{location: new google.maps.LatLng(64.1509986, -21.9449759), weight:50},{location: new google.maps.LatLng(64.1509986, -21.9449759), weight:50},{location: new google.maps.LatLng(64.1509986, -21.9449759), weight:50},{location: new google.maps.LatLng(64.1509986, -21.9449759), weight:50},{location: new google.maps.LatLng(64.1336883, -21.86812), weight:50},{location: new google.maps.LatLng(64.1467, -21.9388), weight:50},{location: new google.maps.LatLng(64.1506095, -21.9622276), weight:50},{location: new google.maps.LatLng(64.1411567, -21.9058933), weight:50},{location: new google.maps.LatLng(64.1440386, -21.8589651), weight:50},{location: new google.maps.LatLng(64.130615, -21.8615783), weight:50},{location: new google.maps.LatLng(64.0980374, -21.8855373), weight:50},{location: new google.maps.LatLng(64.1488524, -21.9759522), weight:50},{location: new google.maps.LatLng(64.1380933, -21.9517717), weight:50},{location: new google.maps.LatLng(64.139885, -21.8846083), weight:50},{location: new google.maps.LatLng(64.0866395, -21.8502623), weight:50},{location: new google.maps.LatLng(64.1356093, -21.7340431), weight:50},{location: new google.maps.LatLng(64.1322633, -21.87356), weight:50},{location: new google.maps.LatLng(64.1497306, -21.9423614), weight:50},{location: new google.maps.LatLng(64.1321596, -21.8732313), weight:50},{location: new google.maps.LatLng(64.1417467, -21.8612233), weight:50},{location: new google.maps.LatLng(64.1514172, -21.9575053), weight:50},{location: new google.maps.LatLng(64.1133083, -21.872255), weight:50},{location: new google.maps.LatLng(64.0556768, -21.9506856), weight:50},{location: new google.maps.LatLng(64.1253894, -21.8162441), weight:50},{location: new google.maps.LatLng(64.1465717, -21.884905), weight:50},{location: new google.maps.LatLng(64.1465717, -21.884905), weight:50},{location: new google.maps.LatLng(64.09933, -21.8430116), weight:50},{location: new google.maps.LatLng(64.0593745, -21.9394912), weight:50},{location: new google.maps.LatLng(64.131645, -21.8741883), weight:50},{location: new google.maps.LatLng(64.0963783, -21.8902117), weight:50},{location: new google.maps.LatLng(64.1431364, -21.9124839), weight:50},{location: new google.maps.LatLng(64.14246, -21.9225), weight:50},{location: new google.maps.LatLng(64.141439, -21.8184933), weight:50},{location: new google.maps.LatLng(64.1423767, -21.9313283), weight:50},{location: new google.maps.LatLng(64.1466806, -21.9238749), weight:50},{location: new google.maps.LatLng(64.1087862, -21.8422149), weight:50},{location: new google.maps.LatLng(64.108714, -21.8423363), weight:50},{location: new google.maps.LatLng(64.132675, -21.8933866), weight:50},{location: new google.maps.LatLng(64.1428767, -21.9533904), weight:50},{location: new google.maps.LatLng(64.064875, -21.9252367), weight:50},{location: new google.maps.LatLng(64.1486567, -21.8856583), weight:50},{location: new google.maps.LatLng(64.1486567, -21.8856583), weight:50},{location: new google.maps.LatLng(64.0772666, -21.9508175), weight:50},{location: new google.maps.LatLng(64.1481822, -21.9420092), weight:50},{location: new google.maps.LatLng(64.1399304, -21.8846892), weight:50},{location: new google.maps.LatLng(64.1430733, -21.9124283), weight:50},{location: new google.maps.LatLng(64.0708313, -21.9621343), weight:50},{location: new google.maps.LatLng(64.1461449, -21.8700449), weight:50},{location: new google.maps.LatLng(64.1188262, -21.8806985), weight:50},{location: new google.maps.LatLng(64.143139, -21.9124319), weight:50},{location: new google.maps.LatLng(64.1430878, -21.9126062), weight:50},{location: new google.maps.LatLng(64.1330961, -21.8840031), weight:50},{location: new google.maps.LatLng(64.14272, -21.9315417), weight:50},{location: new google.maps.LatLng(64.1030997, -21.8811188), weight:50},{location: new google.maps.LatLng(64.1031077, -21.8811193), weight:50},{location: new google.maps.LatLng(64.1031117, -21.8810367), weight:50},{location: new google.maps.LatLng(64.1451633, -21.9079866), weight:50},{location: new google.maps.LatLng(64.1406217, -21.9197341), weight:50},{location: new google.maps.LatLng(64.0672933, -21.9025333), weight:50},{location: new google.maps.LatLng(64.1347183, -21.9174169), weight:50},{location: new google.maps.LatLng(64.1341618, -21.8709744), weight:50},{location: new google.maps.LatLng(64.114387, -21.8789121), weight:50},{location: new google.maps.LatLng(64.1304073, -21.8644265), weight:50},{location: new google.maps.LatLng(64.1304073, -21.8644265), weight:50},{location: new google.maps.LatLng(64.1556067, -21.9910283), weight:50},{location: new google.maps.LatLng(64.1270017, -21.89615), weight:50},{location: new google.maps.LatLng(64.1023583, -21.77562), weight:50},{location: new google.maps.LatLng(64.0560669, -21.9791647), weight:50},{location: new google.maps.LatLng(64.100105, -21.8570016), weight:50},{location: new google.maps.LatLng(64.1398916, -21.8844163), weight:50},{location: new google.maps.LatLng(64.141496, -21.8944578), weight:50},{location: new google.maps.LatLng(64.1212312, -21.8972936), weight:50},{location: new google.maps.LatLng(64.1395869, -21.9013089), weight:50},{location: new google.maps.LatLng(64.09941, -21.8745383), weight:50},{location: new google.maps.LatLng(64.1363785, -21.8785499), weight:50},{location: new google.maps.LatLng(64.1020725, -21.8840869), weight:50},{location: new google.maps.LatLng(64.044138, -21.9616129), weight:50},{location: new google.maps.LatLng(64.1070633, -21.8292661), weight:50},{location: new google.maps.LatLng(64.12575, -21.81151), weight:50},{location: new google.maps.LatLng(64.1223957, -21.8761704), weight:50},{location: new google.maps.LatLng(64.0933483, -21.8312783), weight:50},{location: new google.maps.LatLng(64.0991791, -21.8373357), weight:50},{location: new google.maps.LatLng(64.0998596, -21.8129795), weight:50},{location: new google.maps.LatLng(64.0998596, -21.8129795), weight:50},{location: new google.maps.LatLng(64.1077783, -21.842695), weight:50},{location: new google.maps.LatLng(64.1334983, -21.9156874), weight:50},{location: new google.maps.LatLng(64.1695024, -21.6786327), weight:50},{location: new google.maps.LatLng(64.1323433, -21.8730834), weight:50},{location: new google.maps.LatLng(64.0768083, -21.9122833), weight:50},{location: new google.maps.LatLng(64.1252548, -21.8203846), weight:50},{location: new google.maps.LatLng(64.1362001, -21.7978833), weight:50},{location: new google.maps.LatLng(64.0693387, -21.9029022), weight:50},{location: new google.maps.LatLng(64.1413005, -21.9174787), weight:50},{location: new google.maps.LatLng(64.1400388, -21.8856933), weight:50},{location: new google.maps.LatLng(64.099894, -21.8356745), weight:50},{location: new google.maps.LatLng(64.1031633, -21.875545), weight:50},{location: new google.maps.LatLng(64.1320083, -21.8912717), weight:50},{location: new google.maps.LatLng(64.1109919, -21.9057228), weight:50},{location: new google.maps.LatLng(64.1399186, -21.9009486), weight:50},{location: new google.maps.LatLng(64.1133253, -21.8723229), weight:50},{location: new google.maps.LatLng(64.1325929, -21.8932896), weight:50},{location: new google.maps.LatLng(64.1211483, -21.8672333), weight:50},{location: new google.maps.LatLng(64.1431333, -21.9123487), weight:50},{location: new google.maps.LatLng(64.1421588, -21.9095961), weight:50},{location: new google.maps.LatLng(64.1364188, -21.8785443), weight:50},{location: new google.maps.LatLng(64.1303716, -21.8643302), weight:50},{location: new google.maps.LatLng(64.1304326, -21.8644856), weight:50},{location: new google.maps.LatLng(64.140185, -21.8846433), weight:50},{location: new google.maps.LatLng(64.1093381, -21.8182299), weight:50},{location: new google.maps.LatLng(64.1497267, -21.9426724), weight:50},{location: new google.maps.LatLng(64.147695, -21.943025), weight:50},{location: new google.maps.LatLng(64.1458052, -21.9543497), weight:50},{location: new google.maps.LatLng(64.1627671, -21.6919136), weight:50},{location: new google.maps.LatLng(64.1465317, -21.9390967), weight:50},{location: new google.maps.LatLng(64.0852236, -21.9381386), weight:50},{location: new google.maps.LatLng(64.0852256, -21.9381469), weight:50},{location: new google.maps.LatLng(64.1322668, -21.8730548), weight:50},{location: new google.maps.LatLng(64.1439461, -21.9070511), weight:50},{location: new google.maps.LatLng(64.140545, -21.9195767), weight:50},{location: new google.maps.LatLng(64.1323, -21.8731067), weight:50},{location: new google.maps.LatLng(64.1445283, -21.8586167), weight:50},{location: new google.maps.LatLng(64.1393565, -21.9331189), weight:50},{location: new google.maps.LatLng(64.1493413, -21.9416047), weight:50},{location: new google.maps.LatLng(64.0950766, -21.831719), weight:50},{location: new google.maps.LatLng(64.1192291, -21.8780556), weight:50},{location: new google.maps.LatLng(64.1497517, -21.9622533), weight:50},{location: new google.maps.LatLng(64.1507835, -21.9568041), weight:50}];var ext_gm_points5 = [new google.maps.LatLng(64.1087694, -21.841821),new google.maps.LatLng(64.1543469, -21.9516863),new google.maps.LatLng(64.0951968, -21.8279988),new google.maps.LatLng(64.0951975, -21.8279959),new google.maps.LatLng(64.0913729, -21.8142937),new google.maps.LatLng(64.0913729, -21.8142937),new google.maps.LatLng(64.131693, -21.9082661),new google.maps.LatLng(64.1569767, -21.7573),new google.maps.LatLng(64.1100928, -21.8588112),new google.maps.LatLng(64.1690897, -21.6937358),new google.maps.LatLng(64.1322983, -21.87315),new google.maps.LatLng(64.1338, -21.8675183),new google.maps.LatLng(64.1338, -21.8675183),new google.maps.LatLng(64.147428, -21.9638716),new google.maps.LatLng(64.1088788, -21.8428364),new google.maps.LatLng(64.1273683, -21.8694883),new google.maps.LatLng(64.1442017, -21.953155),new google.maps.LatLng(64.0598315, -21.9694332),new google.maps.LatLng(64.15429, -21.9514367),new google.maps.LatLng(64.0993352, -21.8743763),new google.maps.LatLng(64.1376355, -21.9506029),new google.maps.LatLng(64.1497617, -21.9762183),new google.maps.LatLng(64.1438727, -21.9042202),new google.maps.LatLng(64.1399456, -21.901086),new google.maps.LatLng(64.1411743, -21.9058207),new google.maps.LatLng(64.1400493, -21.8862582),new google.maps.LatLng(64.1411817, -21.9057433),new google.maps.LatLng(64.1337611, -21.884727),new google.maps.LatLng(64.1337512, -21.8676071),new google.maps.LatLng(64.1337512, -21.8676071),new google.maps.LatLng(64.1438783, -21.9355633),new google.maps.LatLng(64.1398116, -21.8831446),new google.maps.LatLng(64.1044522, -21.8335629),new google.maps.LatLng(64.1398673, -21.8869721),new google.maps.LatLng(64.1465825, -21.9395392),new google.maps.LatLng(64.1543696, -21.9511143),new google.maps.LatLng(64.1083613, -21.8420171),new google.maps.LatLng(64.1475439, -21.9608547),new google.maps.LatLng(64.1114521, -21.8769480),new google.maps.LatLng(64.1242849, -21.8291932),new google.maps.LatLng(64.1323335, -21.8730291),new google.maps.LatLng(64.1542583, -21.9515283),new google.maps.LatLng(64.1345125, -21.8956782),new google.maps.LatLng(64.0966263, -21.8898239),new google.maps.LatLng(64.1233747, -21.9020482),new google.maps.LatLng(64.1143414, -21.8956912),new google.maps.LatLng(64.1309702, -21.8881780),new google.maps.LatLng(64.1509804, -21.9449884),new google.maps.LatLng(64.1332016, -21.8037907),new google.maps.LatLng(64.1443898, -21.9512523),new google.maps.LatLng(64.1487733, -21.7807367),new google.maps.LatLng(64.1497659, -21.9659023),new google.maps.LatLng(64.1480907, -21.9645349),new google.maps.LatLng(64.1288433, -21.8106867),new google.maps.LatLng(64.1143967, -21.8974050),new google.maps.LatLng(64.1073615, -21.8602300),new google.maps.LatLng(64.1404945, -21.9197196),new google.maps.LatLng(64.1423486, -21.931466),new google.maps.LatLng(64.0987583, -21.7791217),new google.maps.LatLng(64.1353051, -21.9122236),new google.maps.LatLng(64.1026462, -21.8831869),new google.maps.LatLng(64.1100754, -21.8589445),new google.maps.LatLng(64.0990008, -21.9018839),new google.maps.LatLng(64.143676, -21.9343351),new google.maps.LatLng(64.1321399, -21.8566616),new google.maps.LatLng(64.141305, -21.9058933),new google.maps.LatLng(64.0780934, -21.9494636),new google.maps.LatLng(64.150744, -21.9642697),new google.maps.LatLng(64.1087217, -21.8424321),new google.maps.LatLng(64.0721397, -21.9403987),new google.maps.LatLng(64.1511338, -21.9872162),new google.maps.LatLng(64.144985, -21.9251283),new google.maps.LatLng(64.1132979, -21.8728286),new google.maps.LatLng(64.139932, -21.8850617),new google.maps.LatLng(64.1433967, -21.9598517),new google.maps.LatLng(64.1296907, -21.8938981),new google.maps.LatLng(64.0756483, -21.9519008),new google.maps.LatLng(64.154311, -21.9514659),new google.maps.LatLng(64.1533067, -21.9494417),new google.maps.LatLng(64.0580790, -21.9820081),new google.maps.LatLng(64.1334228, -21.8588757),new google.maps.LatLng(64.0691616, -21.9068412),new google.maps.LatLng(64.1470276, -21.9282633),new google.maps.LatLng(64.1470276, -21.9282633),new google.maps.LatLng(64.103129, -21.8811146),new google.maps.LatLng(64.1086161, -21.8420462),new google.maps.LatLng(64.1083906, -21.8410595),new google.maps.LatLng(64.1017533, -21.8367733),new google.maps.LatLng(64.1325549, -21.8182689),new google.maps.LatLng(64.1439905, -21.9546188),new google.maps.LatLng(64.0475483, -21.9744113),new google.maps.LatLng(64.0993595, -21.875144),new google.maps.LatLng(64.1250989, -21.8096663),new google.maps.LatLng(64.0922594, -21.8922478),new google.maps.LatLng(64.126685, -21.738995),new google.maps.LatLng(64.1363446, -21.7376847),new google.maps.LatLng(64.1256762, -21.7953532),new google.maps.LatLng(64.1414507, -21.8944714),new google.maps.LatLng(64.1414602, -21.8944869),new google.maps.LatLng(64.1269583, -21.895823),new google.maps.LatLng(64.1467209, -21.9555629),new google.maps.LatLng(64.1260591, -21.7434164),new google.maps.LatLng(64.1234655, -21.9017138),new google.maps.LatLng(64.1412217, -21.9059883),new google.maps.LatLng(64.1046983, -21.87606),new google.maps.LatLng(64.1297903, -21.8951451),new google.maps.LatLng(64.0954066, -21.8534833),new google.maps.LatLng(64.1322863, -21.8731416),new google.maps.LatLng(64.0992608, -21.8745651),new google.maps.LatLng(64.1451817, -21.8616017),new google.maps.LatLng(64.1021328, -21.8843197),new google.maps.LatLng(64.1182546, -21.8016865),new google.maps.LatLng(64.1494757, -21.8758876),new google.maps.LatLng(64.0851956, -21.8492993),new google.maps.LatLng(64.1087567, -21.8431017),new google.maps.LatLng(64.1088087, -21.8428937),new google.maps.LatLng(64.1338231, -21.8678466),new google.maps.LatLng(64.1338231, -21.8678466),new google.maps.LatLng(64.1135077, -21.9250056),new google.maps.LatLng(64.1087927, -21.8414879),new google.maps.LatLng(64.1087927, -21.8414879),new google.maps.LatLng(64.0979158, -21.9196292),new google.maps.LatLng(64.1074, -21.8518953),new google.maps.LatLng(64.135481, -21.8727601),new google.maps.LatLng(64.135481, -21.8727601),new google.maps.LatLng(64.1078591, -21.8938188),new google.maps.LatLng(64.1192643, -21.857786),new google.maps.LatLng(64.1206133, -21.8147317),new google.maps.LatLng(64.0573767, -21.9484850),new google.maps.LatLng(64.1102155, -21.9010865),new google.maps.LatLng(64.1464029, -21.9279316),new google.maps.LatLng(64.1432033, -21.9128067),new google.maps.LatLng(64.1416641, -21.9345501),new google.maps.LatLng(64.1279543, -21.7305624),new google.maps.LatLng(64.1447734, -21.8983883),new google.maps.LatLng(64.134715, -21.9047567),new google.maps.LatLng(64.0920866, -21.9118416),new google.maps.LatLng(64.1013659, -21.8802212),new google.maps.LatLng(64.1399240, -21.8870663),new google.maps.LatLng(64.09429, -21.9010183),new google.maps.LatLng(64.149495, -21.940615),new google.maps.LatLng(64.149495, -21.940615),new google.maps.LatLng(64.1297904, -21.8754911),new google.maps.LatLng(64.1297659, -21.8755016),new google.maps.LatLng(64.1542908, -21.9511667),new google.maps.LatLng(64.1542908, -21.9511667),new google.maps.LatLng(64.1318158, -21.7946352),new google.maps.LatLng(64.1327847, -21.8730066),new google.maps.LatLng(64.1328108, -21.8729857),new google.maps.LatLng(64.14732, -21.9725883),new google.maps.LatLng(64.123166, -21.872921),new google.maps.LatLng(64.123166, -21.872921),new google.maps.LatLng(64.1327842, -21.9208941),new google.maps.LatLng(64.1309568, -21.8727981),new google.maps.LatLng(64.1213727, -21.8972327),new google.maps.LatLng(64.1222174, -21.8902586),new google.maps.LatLng(64.1556182, -22.0067859),new google.maps.LatLng(64.1334833, -21.858585),new google.maps.LatLng(64.1541767, -21.951515),new google.maps.LatLng(64.1399833, -21.8845917),new google.maps.LatLng(64.1475454, -21.9767485),new google.maps.LatLng(64.1497417, -21.9555017),new google.maps.LatLng(64.1012733, -21.88104),new google.maps.LatLng(64.1318233, -21.87388),new google.maps.LatLng(64.1405817, -21.912685),new google.maps.LatLng(64.1373949, -21.8974824),new google.maps.LatLng(64.1385393, -21.9336667),new google.maps.LatLng(64.1251358, -21.8202182),new google.maps.LatLng(64.1251358, -21.8202182),new google.maps.LatLng(64.1137900, -21.88282),new google.maps.LatLng(64.1381904, -21.9299944),new google.maps.LatLng(64.144895, -21.9048167),new google.maps.LatLng(64.1242133, -21.829095),new google.maps.LatLng(64.1477344, -21.864414),new google.maps.LatLng(64.138762, -21.8902667),new google.maps.LatLng(64.1401604, -21.9011196),new google.maps.LatLng(64.1046777, -21.8762123),new google.maps.LatLng(64.1021171, -21.8841786),new google.maps.LatLng(64.1499217, -21.942705),new google.maps.LatLng(64.1478067, -21.779935),new google.maps.LatLng(64.1483987, -21.9645039),new google.maps.LatLng(64.1270378, -21.8961245),new google.maps.LatLng(64.1334283, -21.9041626),new google.maps.LatLng(64.1075514, -21.8282097),new google.maps.LatLng(64.1431196, -21.8536061),new google.maps.LatLng(64.1408733, -21.91488 m),new google.maps.LatLng(64.1208755, -21.9006477),new google.maps.LatLng(64.1408733, -21.91488),new google.maps.LatLng(64.1364683, -21.87866),new google.maps.LatLng(64.1208833, -21.9013118),new google.maps.LatLng(64.1402883, -21.9250733),new google.maps.LatLng(64.1323192, -21.872955),new google.maps.LatLng(64.1326587, -21.893537),new google.maps.LatLng(64.1360667, -21.9064533),new google.maps.LatLng(64.1399805, -21.8842262),new google.maps.LatLng(64.1020506, -21.8748035),new google.maps.LatLng(64.1437043, -21.8909213),new google.maps.LatLng(64.0982451, -21.8672815),new google.maps.LatLng(64.1245533, -21.8921533),new google.maps.LatLng(64.147855, -21.9412817),new google.maps.LatLng(64.0830033, -21.90658),new google.maps.LatLng(64.1401392, -21.884214),new google.maps.LatLng(64.1486677, -21.8823852),new google.maps.LatLng(64.1240066, -21.8791),new google.maps.LatLng(64.1240066, -21.8791),new google.maps.LatLng(64.0995477, -21.8439328),new google.maps.LatLng(64.1090646, -21.8420772),new google.maps.LatLng(64.1304532, -21.8645035),new google.maps.LatLng(64.1463917, -21.9309217),new google.maps.LatLng(64.1304664, -21.8644473),new google.maps.LatLng(64.1063211, -21.8615859),new google.maps.LatLng(64.1278599, -21.8634378),new google.maps.LatLng(64.1430507, -21.9128862),new google.maps.LatLng(64.143845, -21.9675017),new google.maps.LatLng(64.1422466, -21.8546366),new google.maps.LatLng(64.1422466, -21.8546366),new google.maps.LatLng(64.0960138, -21.8570628),new google.maps.LatLng(64.1349969, -21.9102972),new google.maps.LatLng(64.1131909, -21.8824165),new google.maps.LatLng(64.1387233, -21.9588467),new google.maps.LatLng(64.1013717, -21.824095),new google.maps.LatLng(64.13365, -21.7998899),new google.maps.LatLng(64.1460821, -21.7771722),new google.maps.LatLng(64.1460805, -21.7771714),new google.maps.LatLng(64.1009598, -21.8617577),new google.maps.LatLng(64.0992858, -21.8746781),new google.maps.LatLng(64.1454054, -21.8570613),new google.maps.LatLng(64.1509986, -21.9449759),new google.maps.LatLng(64.1509986, -21.9449759),new google.maps.LatLng(64.1509986, -21.9449759),new google.maps.LatLng(64.1509986, -21.9449759),new google.maps.LatLng(64.1336883, -21.86812),new google.maps.LatLng(64.1467, -21.9388),new google.maps.LatLng(64.1506095, -21.9622276),new google.maps.LatLng(64.1411567, -21.9058933),new google.maps.LatLng(64.1440386, -21.8589651),new google.maps.LatLng(64.130615, -21.8615783),new google.maps.LatLng(64.0980374, -21.8855373),new google.maps.LatLng(64.1488524, -21.9759522),new google.maps.LatLng(64.1380933, -21.9517717),new google.maps.LatLng(64.139885, -21.8846083),new google.maps.LatLng(64.0866395, -21.8502623),new google.maps.LatLng(64.1356093, -21.7340431),new google.maps.LatLng(64.1322633, -21.87356),new google.maps.LatLng(64.1497306, -21.9423614),new google.maps.LatLng(64.1321596, -21.8732313),new google.maps.LatLng(64.1417467, -21.8612233),new google.maps.LatLng(64.1514172, -21.9575053),new google.maps.LatLng(64.1133083, -21.872255),new google.maps.LatLng(64.0556768, -21.9506856),new google.maps.LatLng(64.1253894, -21.8162441),new google.maps.LatLng(64.1465717, -21.884905),new google.maps.LatLng(64.1465717, -21.884905),new google.maps.LatLng(64.09933, -21.8430116),new google.maps.LatLng(64.0593745, -21.9394912),new google.maps.LatLng(64.131645, -21.8741883),new google.maps.LatLng(64.0963783, -21.8902117),new google.maps.LatLng(64.1431364, -21.9124839),new google.maps.LatLng(64.14246, -21.9225),new google.maps.LatLng(64.141439, -21.8184933),new google.maps.LatLng(64.1423767, -21.9313283),new google.maps.LatLng(64.1466806, -21.9238749),new google.maps.LatLng(64.1087862, -21.8422149),new google.maps.LatLng(64.108714, -21.8423363),new google.maps.LatLng(64.132675, -21.8933866),new google.maps.LatLng(64.1428767, -21.9533904),new google.maps.LatLng(64.064875, -21.9252367),new google.maps.LatLng(64.1486567, -21.8856583),new google.maps.LatLng(64.1486567, -21.8856583),new google.maps.LatLng(64.0772666, -21.9508175),new google.maps.LatLng(64.1481822, -21.9420092),new google.maps.LatLng(64.1399304, -21.8846892),new google.maps.LatLng(64.1430733, -21.9124283),new google.maps.LatLng(64.0708313, -21.9621343),new google.maps.LatLng(64.1461449, -21.8700449),new google.maps.LatLng(64.1188262, -21.8806985),new google.maps.LatLng(64.143139, -21.9124319),new google.maps.LatLng(64.1430878, -21.9126062),new google.maps.LatLng(64.1330961, -21.8840031),new google.maps.LatLng(64.14272, -21.9315417),new google.maps.LatLng(64.1030997, -21.8811188),new google.maps.LatLng(64.1031077, -21.8811193),new google.maps.LatLng(64.1031117, -21.8810367),new google.maps.LatLng(64.1451633, -21.9079866),new google.maps.LatLng(64.1406217, -21.9197341),new google.maps.LatLng(64.0672933, -21.9025333),new google.maps.LatLng(64.1347183, -21.9174169),new google.maps.LatLng(64.1341618, -21.8709744),new google.maps.LatLng(64.114387, -21.8789121),new google.maps.LatLng(64.1304073, -21.8644265),new google.maps.LatLng(64.1304073, -21.8644265),new google.maps.LatLng(64.1556067, -21.9910283),new google.maps.LatLng(64.1270017, -21.89615),new google.maps.LatLng(64.1023583, -21.77562),new google.maps.LatLng(64.0560669, -21.9791647),new google.maps.LatLng(64.100105, -21.8570016),new google.maps.LatLng(64.1398916, -21.8844163),new google.maps.LatLng(64.141496, -21.8944578),new google.maps.LatLng(64.1212312, -21.8972936),new google.maps.LatLng(64.1395869, -21.9013089),new google.maps.LatLng(64.09941, -21.8745383),new google.maps.LatLng(64.1363785, -21.8785499),new google.maps.LatLng(64.1020725, -21.8840869),new google.maps.LatLng(64.044138, -21.9616129),new google.maps.LatLng(64.1070633, -21.8292661),new google.maps.LatLng(64.12575, -21.81151),new google.maps.LatLng(64.1223957, -21.8761704),new google.maps.LatLng(64.0933483, -21.8312783),new google.maps.LatLng(64.0991791, -21.8373357),new google.maps.LatLng(64.0998596, -21.8129795),new google.maps.LatLng(64.0998596, -21.8129795),new google.maps.LatLng(64.1077783, -21.842695),new google.maps.LatLng(64.1334983, -21.9156874),new google.maps.LatLng(64.1695024, -21.6786327),new google.maps.LatLng(64.1323433, -21.8730834),new google.maps.LatLng(64.0768083, -21.9122833),new google.maps.LatLng(64.1252548, -21.8203846),new google.maps.LatLng(64.1362001, -21.7978833),new google.maps.LatLng(64.0693387, -21.9029022),new google.maps.LatLng(64.1413005, -21.9174787),new google.maps.LatLng(64.1400388, -21.8856933),new google.maps.LatLng(64.099894, -21.8356745),new google.maps.LatLng(64.1031633, -21.875545),new google.maps.LatLng(64.1320083, -21.8912717),new google.maps.LatLng(64.1109919, -21.9057228),new google.maps.LatLng(64.1399186, -21.9009486),new google.maps.LatLng(64.1133253, -21.8723229),new google.maps.LatLng(64.1325929, -21.8932896),new google.maps.LatLng(64.1211483, -21.8672333),new google.maps.LatLng(64.1431333, -21.9123487),new google.maps.LatLng(64.1421588, -21.9095961),new google.maps.LatLng(64.1364188, -21.8785443),new google.maps.LatLng(64.1303716, -21.8643302),new google.maps.LatLng(64.1304326, -21.8644856),new google.maps.LatLng(64.140185, -21.8846433),new google.maps.LatLng(64.1093381, -21.8182299),new google.maps.LatLng(64.1497267, -21.9426724),new google.maps.LatLng(64.147695, -21.943025),new google.maps.LatLng(64.1458052, -21.9543497),new google.maps.LatLng(64.1627671, -21.6919136),new google.maps.LatLng(64.1465317, -21.9390967),new google.maps.LatLng(64.0852236, -21.9381386),new google.maps.LatLng(64.0852256, -21.9381469),new google.maps.LatLng(64.1322668, -21.8730548),new google.maps.LatLng(64.1439461, -21.9070511),new google.maps.LatLng(64.140545, -21.9195767),new google.maps.LatLng(64.1323, -21.8731067),new google.maps.LatLng(64.1445283, -21.8586167),new google.maps.LatLng(64.1393565, -21.9331189),new google.maps.LatLng(64.1493413, -21.9416047),new google.maps.LatLng(64.0950766, -21.831719),new google.maps.LatLng(64.1192291, -21.8780556),new google.maps.LatLng(64.1497517, -21.9622533),new google.maps.LatLng(64.1507835, -21.9568041)];var heatmap5 = new google.maps.visualization.HeatmapLayer({ data: ext_gm_locations5 });heatmap5.setMap(ext_gm_map5);Google_map.set_bounds(ext_gm_points5, true, true);if (!true) { Google_map.fix_zoom(0); }//]]> </script></div>

    It seems that the browser is choking on having all the datapoints in one line, causing it to throw the error "Uncaught SyntaxError: missing ) after argument list
    ".

    I have tried with fewer points and it works well.

    I would think that this can be fixed by generating a newline in the code between each datapoint.

    Best regards,

    Maron

    Posted 2 months ago #
  2. myDBR Team, Key Master

    Hi,
    could you check your data?

    There is an entry "64.1408733, -21.91488 m" where the extra 'm' in the longitude value causes the script to fail.

    There really is no need for line breaks in JavaScript.
    --
    myDBR Team

    Posted 2 months ago #
  3. maron, Member

    Egg on my face... my mistake

    My apologies.

    Posted 2 months ago #

Reply

You must log in to post.