If a GControl contains multiple elements shouldn't all those elements be treated as part of one GControl in that the info window will not position itself below them?
I thought about implementing this but I don't see how how having GControls nested within a GControl would make things any different than just having the one containing GControl. On Dec 6, 7:45 pm, eKiTeL <e...@ekittell.com> wrote: > On Dec 6, 3:49 pm, Mike Williams <nos...@econym.demon.co.uk> wrote: > > > What you can do is turn your mapTypeDiv etc. intp GControls. The info > > window knows where the GControls are, and avoids opening underneath then > > whenever possible. > > But all those elements, graphics and actual buttons like mapTypeDiv, > are setup with the initialize method for a GControl so shouldn't that > all be treated as a control? I followed that example as closely as > possible, but I added the button graphics to the container first then > the actual buttons like mapTypeDiv which are actually invisible, just > a clickable area. > > var container = document.createElement("div"); > > container.innerHTML = '<div id="map_button"><img src="/images/ > zoom_control/map.png" width="78" height="32" alt="" > id="map_button_img"></div><div id="satellite_button"><img src="/images/ > zoom_control/satellite.png" width="74" height="32" alt="" > id="satellite_button_img"></div><div id="hybrid_button"><img src="/ > images/zoom_control/hybrid.png" width="77" height="32" alt="" > id="hybrid_button_img"></div>'; -- You received this message because you are subscribed to the Google Groups "Google Maps API" group. To post to this group, send email to google-maps-...@googlegroups.com. To unsubscribe from this group, send email to google-maps-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-maps-api?hl=en.