Declare only one instance of the InfoWindow just like you have labeled
this this thread.

What your code will look like is that the declaration of the
infowindow will be placed in the global area of your javascript and
not declared more than once in your code.  So, the event listener for
each marker will open the infowindow for each location of the marker.

Here are some more examples:

http://www.mentoreng.com/testing/maps/public/map.html
The above is actually doing what yours would be doing without the
mouseout listener.


http://www.mentoreng.com/testing/maps/public/map2.html
The above link actually corrects what was happening in map.html


Compare the two scripts and you'll notice that the first map has an
infowindow created for each marker, whereas the 2nd map has one
infowindow for all markers.



On Aug 18, 8:35 am, K0rhal <lee.sol...@googlemail.com> wrote:
> Hi guys, i am very new to the google maps API, so please keep with me.
> I
>
> I would like to be able to place markers on a map using the UK
> postcode, this part i have managed.
> Now i would the infowindows activated by mouse over, it should remain
> open until...
>
> 1.) The 'x' is clicked
> 2.) another infowindow is triggered..
>
> The problem however is that i can not seem to get this effect.. The
> info windows open however i would like to restrict it to one..
>
> Any help would be amazing.. Thanks in advance..
>
> Live example:
>
> http://213.40.100.100/maps/

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