Monday, June 20, 2011

[Google Maps API v2] Re: G_SATELLITE_3D_MAP Covers Controls

> Has anyone else seen this behavior before, or have a fix for it?

just to get terminology right, it's not a custom control but a regular
GControl which you have repositioned.

and in case you're curious, the control slips behind the map in Chrome
for Windows, too.

I'm not sure how you would fix it - you could try putting it in a div
and playing with the z-index (unlikely to work, but maybe worth a try)
or seeing if the GControl would accept a z-index parameter the way
that markers do (even less likely) as shown here: http://econym.org.uk/gmap/zindex.htm

but I think the problem is with the way that Earth interacts with the
API - from what I can tell, changing the map to Earth type overlays
the Earth map and its control on top of the GControl, as you can see
that the style of the control changes when you switch to Earth mode.

Something that I have noticed, though, is that if you make a truly
Custom Control (like in this example:
http://code.google.com/apis/maps/documentation/javascript/v2/examples/control-custom.html)
the divs that you append to the map sit right at the top, and will
even sit on top of the Control in Earth view, as you can see with the
search box here: http://www.xelawho.com/map

So maybe that would be a workaround. Sorry for the wishy-washy advice.
Maybe somebody else has a more concrete idea.

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

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate