Google Maps API v3 - GIcon ist nicht definiert

Ich weiß, dass Sie einige Dinge von v2 auf v3, was kann ich hier tun, um es zu beheben?

GIcon wird nicht unterstützt von v3?

//Google-Map icon object
var gMapIcon = new GIcon(G_DEFAULT_ICON); //change to new google.maps.MarkerImage();???
//does icon exist
if ( mapElements[lMapElementIndex]['icon'].toString().length > 0) {
    gMapIcon.image = html_entity_decode(mapElements[lMapElementIndex]['icon']);
    gMapIcon.shadow = "";
    iconHeight = mapElements[lMapElementIndex]['iconheight'];
    iconWidth = mapElements[lMapElementIndex]['iconwidth'];
    gMapIcon.iconSize = new GSize(iconWidth,iconHeight);
    gMapIcon.iconAnchor = new GPoint(0,0);
    gMapIcon.infoWindowAnchor = new GPoint(15,10);
}
    var markerOptions = { 
        icon: gMapIcon //change to image? 
     };
    var marker = new google.maps.Marker(point,markerOptions);

gefunden, von hier aus https://developers.google.com/maps/documentation/javascript/overlays?hl=de-DE#SimpleIcons

vielen Dank für jede Hilfe oder Tipps!

InformationsquelleAutor Jim | 2012-06-04
Schreibe einen Kommentar