Just wondering.

In settings/gmap I can turn overview map always on. However - that means on all maps it is initially shown expanded (I know you can click on it t minimize it back to the corner).

I can't see any way of enabling the overview map in the gmap macro - is this possible to control on a map by map basis?

Comments

suffering drupal’s picture

Hi I am having the same problem and I see that after almost a year and a half No-ONE has answered you yet....
It's frustrating isn't it?
Seems that the simple questions at Drupal are not handled. Nor are simple explanations given included with the modules are there?
What about just a simple list of the controls that are available for the maps with their explanation and syntax? Well NO. You have to go to Google maps Controls Overview at http://code.google.com/intl/nl/apis/maps/documentation/controls.html#Con...
Hoping that the names are not changes in Drupal.....
Anyway they don't say either what the syntax is. I tried with "|GOverviewMapControl=NO" but of course it doesn't work. Don't know if there is another magic word or if it's case-sensitive.
No-one there to explain though. Just try for yourself by trial and error and hope not to loose more than a day finding out something as simple as this.

Here at least you have an overview kind of list of some controls.

The Maps API comes with a handful of built-in controls you can use in your maps:

* GLargeMapControl3D - a large pan/zoom control as now used on Google Maps. Appears in the top left corner of the map by default.
* GLargeMapControl - a simpler large pan/zoom control. Appears in the top left corner of the map by default.
* GSmallMapControl - a smaller pan/zoom control. Appears in the top left corner of the map by default.
* GSmallZoomControl3D - a small zoom control (with no panning controls) as now used on Google Maps.
* GSmallZoomControl - a small zoom control (no panning controls) used in the small map blowup windows used to display driving directions steps on Google Maps.
* GScaleControl - a map scale
* GMapTypeControl - buttons that let the user toggle between map types (such as Map and Satellite)
* GHierarchicalMapTypeControl - a selection of nested buttons and menu items for placing many map type selectors.
* GOverviewMapControl - a collapsible overview map in the corner of the screen
* GNavLabelControl - a dynamic label indicating the "address" of the current viewport, appropriate to zoom level.

suffering drupal’s picture

Right....
I just found that on under the Map settings at: /admin/settings/gmap there is "some" reference to the controls with their corrsponding internal name like:

Map: Standard street map.
The standard default street map. Internal name: G_NORMAL_MAP
Satellite: Standard satellite map.
Satellite view without street overlay. Internal name: G_SATELLITE_MAP
Hybrid: Hybrid satellite map.
Satellite view with street overlay. Internal name: G_HYBRID_MAP
Terrain: Physical feature map.
Map with physical data (terrain, vegetation.) Internal name: G_PHYSICAL_MAP

Others do not have this clear reference so one has to guess that it's the same as the one that's being used to list them:

Behavior flags modify how a map behaves. Grayed out flags are not settable here, but may be set on a map by map basis via code or a macro. Changes to behaviors will not affect the preview map shown above until changes are saved.
locpick (?): Location chooser
Used to activate location choosing using a gmap.
nodrag (?): Disable dragging
Remove the ability for the user to drag the map. If dragging is disabled, keyboard shortcuts are implicitly disabled.
nokeyboard (?): Disable keyboard
Disable the keyboard shortcuts.
nomousezoom (?): Disable mousezoom
Disable using the scroll wheel to zoom the map.
nocontzoom (?): Disable Continuous Zoom
Disable dynamically resizing images while waiting for tiles to load when zooming.

AND......

overview (?): Enable Overview Map
Enable the "overview map" in the bottom right corner.

YESSSSS!!!!!!!

Now it seems we only need to know HOW to tell the "overview" to be unabled, maximized or minimized.
And of course, since the Drupal Policy is "go and learn from your own mistakes" there is no mention on how this can be done. You are stimulated to take own initiative and find out for yourself, obviously by trial and a error! This of course can unnecessarily take hours or days, but who cares..... You'll grow up a stronger person (although you there may be no time left to enjoy it)!

The only thing that is left is to try one by one the several options, even if we are not fully sure that "overview" really is the correct term, we don't know the syntax and we don't know if it's case sensitive. It's just a question of insisting.....
We can try for example:

[gmap zoom=10 |center=37.8553385894982,-4.7900390625 |width=100% |height=180px |control=None |type=Map |overview=0 ]
[gmap zoom=10 |center=37.8553385894982,-4.7900390625 |width=100% |height=180px |control=None |type=Map |overview=None ]
[gmap zoom=10 |center=37.8553385894982,-4.7900390625 |width=100% |height=180px |control=None |type=Map |overview=none ]
[gmap zoom=10 |center=37.8553385894982,-4.7900390625 |width=100% |height=180px |control=None |type=Map |overview=Disabled ]
[gmap zoom=10 |center=37.8553385894982,-4.7900390625 |width=100% |height=180px |control=None |type=Map |overview=disabled ]
[gmap zoom=10 |center=37.8553385894982,-4.7900390625 |width=100% |height=180px |control=None |type=Map |overview=Minimized ]
[gmap zoom=10 |center=37.8553385894982,-4.7900390625 |width=100% |height=180px |control=None |type=Map |overview=minimized ]
[gmap zoom=10 |center=37.8553385894982,-4.7900390625 |width=100% |height=180px |control=None |type=Map |overview=Collapsed ]
[gmap zoom=10 |center=37.8553385894982,-4.7900390625 |width=100% |height=180px |control=None |type=Map |overview=collapsed ]
etcetera...
etcetera..
etcetera.

Enjoy your day ....and drupal!

suffering drupal’s picture

To help my fellow Drupal sufferers (long term newbies) avoid losing hours I can inform that NONE of the above mentioned options works. So if you want to insist on disabling the overview map through Macro (by default overview is "On") you know you'll have to try other options.

maur’s picture

Found this trick in looking for a way to remove autozoom from only one map on your site by using the gmap macro. I just tried this on my site to add in an overview to the bottom right and it worked.

behavior=+overview

I put it at the front of the macro and it pulled up an overview on only that map on my site. If you have it on and want to remove it from one particular map switch out the + for a - and it removes it on the map. Not sure if this'll help you to much but you might be able to mess with this and get something to work?

johnv’s picture

Status: Active » Closed (won't fix)

Closing this very old issue. Please reopen if it is still valid.