On Dec 29, 10:57 am, "Neil Peddie" <[email protected]> wrote: > How do I know what info box I have clicked based say if I have three on he > screen at the same time?
By using a helper function. Javascript will keep track of local variables (like the "codenum" parameter) for each separate marker: it's called function closure. It sounded as though you were already doing that, but presumably you're not. Have a look at Mike's tutorial about markers and infoWindows: http://econym.org.uk/gmap/basic1.htm Note that if you use a prepared div element as I suggested, you will need to make sure it's (approximately) the right size before the dynamic information is added or the infoWindow graphics won't be calculated correctly. Getting that right without having to specify a size beforehand is more complicated. One step at a time. ...+ "<div id='IWinfo' height='50px' width='100px'></div>" Please post a link to your map. Andrew --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
