Thanks, but this didn't work! Could it be done in some oterh way?

On 18 Aug, 22:07, JFrancis <jfran...@mge.com> wrote:
> In my case, it is within my geocode code. The address is searched, the
> marker appears, and an infoWindow opens. I did it this way because I
> also have markers on the map which are created using a KML file, and
> before implementing this change, I would get 2 open infoWindows, one
> for the geocoded marker and one for a KML marker. It also closes the
> geocoded infoWindow if a new address is searched and the previous
> infoWindow is still open.
>
> I'm thinking the code should be within the marker listener; something
> like:
>
> google.maps.event.addListener(marker, "click", function (e) {
>         if (ib) {
>                 ib.close();
>                 ib.open(theMap, this);
>         } else {
>                 ib.open(theMap, this);
>
>         }
>
> });
>
> Don't quote me on that, though! >;-)
>
> JF

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" group.
To post to this group, send email to google-maps-js-api-v3@googlegroups.com.
To unsubscribe from this group, send email to 
google-maps-js-api-v3+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-maps-js-api-v3?hl=en.

Reply via email to