Hi, I am fairly new the both javascript and the Goolgle Maps API, so
bear with me here.

I am extending the GMarker object to add in the field 'desc' here is
my code for this:

function CustomMarker( latlng, options ){
        this.latlng = latlng;
        this.desc = options.desc || "";
        GMarker.apply( this, arguments );
        }

CustomMarker.prototype = new GMarker( new GLatlng( 0, 0 ) );

CustomMarker.prototype.initialize = function(){
        GMarker.prototype.initialize.call( this, map );
        }

CustomMarker.prototype.remove = function() {
        GMarker.prototype.remove.call(this);
}

I am able to construct the marker, it through alerts, I find that it
is messing up on this line:

marker.bindInfoWindowHtml( markerInfo );

I know that the markerInfo string is valid, because I was using the
same string before with a normal GMarker object, and it was working
fine.

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to