tags:

views:

878

answers:

3

Google Maps API V3 doesn't support the V2 GOverviewMapControl option, yet. I've come across a piece of code at http://dl.google.com/io/2009/pres/Th%5F1045%5FMaps%5FAPI%5FMobile.pdf , silde 19, that gives the code to display the smaller map, but not the draggable, semi-transparent blue box that you generally see here. It's possible, but unofrtunately the code is 'ellided'. Anyone have any ideas how to generate this? Thanks

+2  A: 

Within the overlayMap, add a draggable marker to display the frame of the RectangleOverlay, and a non-draggable marker to display the semi-transparent box itself. Then, add bindings to some of the maps' events to update size and position of the markers, i.e. the maps' bounds_changed, drag, and/or center_changed events. Finally, update the location of the maps when the frame is dragged by binding a function to its dragend event.

lemnar
A: 

Check out http://code.google.com/p/gmaps-api-v3-overviewmapcontrol It's an open-source project to approximate the functionality of v2's GOverviewMapControl.

jgeerdes
I actually did end up totally mimicing the OverviewMap in V3 and getting the draggable blue box to work. However, I ended up ditching it as the overview map still contained the Google logo and reference to the map provider, which didn't look great in the small overlay window. Do you know if the project you've mentioned here has manage to overcome that issue?
eclipse31
Not yet. But I am the project's primary dev, and I think I'll see if I can't track down someone on the Maps API team and/or Google Legal to see about getting permission to do just that.
jgeerdes