> this.marker = new GMarker(point,hIcon);
> this.map.addOverlay(this.marker);
> this.marker.address = this.address;
> this.marker.label = this.label;
> GEvent.addListener(this.marker, "click", function() {
> this.openInfoWindowHtml(point,this.label||this.address);
> });
>
> At that time I am getting the error as "a is undefined".(But this second
> issue is not committed so you will not get it in the current link)
> Please help me.
I still think that you're way over-complicating things for yourself.
The way that I read the documentation (http://code.google.com/apis/
maps/documentation/javascript/v2/
reference.html#GMarker.openInfoWindowHtml), opening an infowindow on a
marker means you don't need to pass the coordinates because the marker
already has coordinates and the infowindow will be opened there. So if
I read correctly, the code is expecting for your point to be an html
string and for this.label||this.address to specify the maxwidth of the
infowindow...
but I have been wrong before ;)
--
You received this message because you are subscribed to the Google Groups
"Google Maps API V2" 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.