javascript - How to default the small overview map on the bottom right of a Google Map to being minimized? -


I am using the latest version of the Google Maps API.

What do I have to do automatically reduces the small observation map at the bottom right of embedded Google Maps or, in the worst case, it is not being displayed at all.

I have not managed to find a document about this.

Any help would be greatly appreciated.

In the past, you can say 'hide' on GOViewviewMapControl during your init, but such a It seems that little does not work without hacking anymore.

If you do not want to display 'GOverviewMapControl', then do not add it to the map when you create GMap2.

'Hack' will add some control to the page, which is loaded like an image, and calls it a function that says 'hide' on GOverviewMapControl, when it loads Happening.

  function initialize () {If (GBrowserIsCompatible ()) {var map = new GMap2 (document.getElementById ("map_canvas")); Map.setCenter (New GLatLng (37.4419, -122.1419), 13); Map.setUIToDefault (); // Just skip these steps, leave the overview map var mini = new GOverviewMapControl (); Map.addControl (mini); // It has worked in the past, but now you have to call it // later in the pipeline mini.hide (true); }}  

Comments

Popular posts from this blog

c# - How to capture HTTP packet with SharpPcap -

jquery - SimpleModal Confirm fails to submit form -

php - Multiple Select with Explode: only returns the word "Array" -