Apparanlty its not the bindInfoWindowHtml function that is having the
issue, I cannot add the the marker to the map with the following line
either:

gMap.addOverlay( marker );

I suspect I have screwed up the javascript inheritance stuff - it is
quite different from what I am used to.

On Feb 26, 12:42 pm, Farmy <[email protected]> wrote:
> 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