Google Maps Api v2 error

Posted by Harry on Stack Overflow See other posts from Stack Overflow or by Harry
Published on 2010-06-05T14:01:23Z Indexed on 2010/06/05 14:12 UTC
Read the original article Hit count: 247

Filed under:
|

 

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

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about google-maps