Google Maps Api v2 error
- by Harry
var mymarkers= []; //array
function createMarker(point,html,ref){
var marker = new GMarker(point);
mymarkers[ref] = marker;
GEvent.addListener(newmarker,'click',function(){newmarker.openInfoWindowHtml(html);});
map.addOverlay(newmarker);
}
This function works well, it adds a marker to the map no problem, but when trying to use mymarkers[] array of markers they have not been stored?
Is there a validator to check the GMarker is nice and clean?
google maps main.js throws a wobbly:
Uncaught TypeError: Cannot read property '__e_' of undefined