Hi Thanks for your reply

i am still not sure how to add the tabbed window code to my marker. It
seems that as soon as I stop using the normal infoWindow for the
marker variable, it picks
up the map point

I a new to the Google api and your help is much appreciated

Thanks

Lee

On Jun 12, 6:19 pm, Andrew Leach <[email protected]> wrote:
> On Jun 12, 5:35 pm, Lee <[email protected]> wrote:
>
>
>
> > having real trouble with what i thought would be a simple task. I wish
> > to click on a marker and display a tabbed info window with two tabs.
> > One for address and one for streetview. i have achieved this from
> > clicking on the actual map using latlng, but cant for the life of me
> > do it for a marker that uses an xml file tp plot markers.
>
> > M code is below. Hope someone can help
>
> Posting code really isn't helpful. Post a link.
>
> When you click on the map, you get the coordinates and use those to
> create the infoWindow.
>
> When you click on the marker, just open the infoWindow -- you already
> do that in your code. If you need to know the marker's coordinates,
> you can use this.getLatLng() inside the listener function: "this" is a
> reference to the marker.
>
> What you *could* do, so you don't have to write code twice, is trigger
> a click on the map when the marker is clicked:
> GEvent.addListener(marker, 'click', function() {
>         GEvent.trigger(map,"click",null,point,point);
>       });
>
> I *think* that will work; there are several closures involved. If it
> doesn't, replace "point" with "this.getLatLng()". The arguments after
> the "click" are passed directly to the map's click-handler function: a
> null overlay and two identical locations.

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