Hi everyone, I've checked the setting "scale : Add scale control to map." under Gmap module's Map "Map Behavior flags". I was expecting to see the scale controls: http://screencast.com/t/NEFoKN3YX (red) but did not. Is there something I've missed configuring?

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Mark Vincent Verallo’s picture

I meant zoom control. I've resolved this by adding to the map macro "control=small" of the Location map block. It seems that the overall settings in Gmap is not used. I think we have to override on map by map basis.

seanmrafferty’s picture

#1 works when you edit the block, but what can you do when you are not using blocks (they don't export)? As noted, the GMap config settings seemed to be ignored.

podarok’s picture

Version: 7.x-2.7-beta2 » 7.x-2.x-dev

moving to proper version

kenorb’s picture

Title: Scale Control not showing on map » Zoom (not Scale) Control not showing on map
kenorb’s picture

Status: Active » Needs review
FileSize
1.3 KB

It seems the zoomControl wasn't implemented?
Find the attached patch to test it.

Status: Needs review » Needs work

The last submitted patch, gmap-zoomControl-1986108.patch, failed testing.

kenorb’s picture

Category: bug » feature
Status: Needs work » Needs review
FileSize
1.19 KB
hutch’s picture

podarok’s picture

Status: Needs review » Closed (duplicate)

tag

miccelito’s picture

@kenorb #7:
After adding your patch I get following message

Notice: Undefined index: zoom in gmap_admin_settings() (line 84 of /sites/all/modules/gmap/gmap_settings_ui.inc).




(I'm using GMmap 7x-2.7)

kenorb’s picture

@miccelito:
The issue is already fixed in dev, so please check the latest dev version or please use this patch:
https://drupal.org/node/1851028#comment-7769003

miccelito’s picture

@kenorb:
Should say that your patch #7 did work showing the zoom control. Great so far.
Tho the 'Notice: Undefined index: zoom in gmap_admin_settings()' warning message showed up.
I have added a 'location cck' field to one of my views, the field includes a Map Macro setting, control value (control=Small) included in macro I've provided. Of some reason the 'Notice: Undefined index: zoom in gmap_admin_settings()' warning message disappears if I exclude control value for the Map Macro setting field of the 'location cck' field. Weird..
Have you got any clue why?
Anyways I'll keep using GMmap 7x-2.7, if any new warning messages will appear then I'll consider try dev version or use linked patch #11

hutch’s picture

The linked patch in #11 has already been commited, just download 7.x-2.x-dev and make sure you flush the cache.

gillarf’s picture

I'm having the same issue with 6.x-2.0-beta5 also. Was zoom missed out here too?