On Dec 6, 3:49 pm, Mike Williams <[email protected]> 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 [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.