Active
Project:
GMap Module
Version:
6.x-1.1-rc1
Component:
User interface
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
25 Sep 2009 at 13:26 UTC
Updated:
13 Mar 2012 at 04:59 UTC
Jump to comment: Most recent
Comments
Comment #1
edemus commentedsame here, not working. This would be great option to set as global settings and as per macro
EDIT: Just noticed it actually works, but only when macro doesnt contain "+autozoom"
Comment #2
bails commentedBump! just checked dev version and the problem still persists.
Comment #3
Exploratus commentedI have this problem.... Anyone figured it out?
Comment #4
Anonymous (not verified) commentedhttp://drupal.org/node/337585
Comment #5
lodey commentedWhen you create a GMap via views I found that the [macro] pre set by the view is basically empty. You need to create a Macro with your settings - size etc.... then add this addition at the end |nomousezoom=true
My macro looked like this and it fixed that problem for the views driven map.
[gmap zoom=2 |center=29.53522956294847,30.9375 |width=620px |height=400px |control=Small |type=Physical |nomousezoom=true]
You can use the macro builder to build your map code like above - you need to enable the module and then navigate to the macro builder - I forget the url, but its prebuilt to the site - something like http://www.yourdrupalsite/map/micro - just remember to add the nomosezoom - as the macro builder didnt give me that option.
Hope that helps.
Comment #6
scott_earnest commentedhook_form_alter() approach
I ended up doing something along these lines. Maybe it will help someone else out.
Comment #7
alexbk66- commentedsubscribing
Duplicate issues:
Comment #8
alexbk66- commentedActually, after reading all these posts, I figured this out.
To disable mouse zoom for user/node locations need to add behavior=+nomousezoom to the GMap macro at admin/settings/gmap_location (for both user and node settings)
[gmap |id=nodemap|center=40,0|zoom=1|width=100%|height=400px|behavior=+nomousezoom]
The same for Location module admin/settings/location
Location chooser macro:
[gmap|behavior=+nomousezoom]
Comment #9
venutip commentedSuggestions in #8 worked for me. I wanted to turn off mouse scrolling on the location picker for all node/add pages, so I changed the macro on admin/settings/location to what alexbk66 suggested; namely:
[gmap|behavior=+nomousezoom]
Comment #11
thisisnotrealpeople commentedWhy won't this work for me, I changed it in both places. I can change other aspects of the macro no problem, just not this one. Any idea why?
Comment #12
trentharlem commentedI added " |nomousezoom=true " to my macros in my location block at admin/build/block/configure/gmap_location/0 to remove the mouse zoom when viewing my nodes. (I had to add it to all of my node types.)
I also added it ( " |nomousezoom=true " ) to the macro at admin/settings/location/main to remove the mouse zoom from my node creation pages.
My full macro looks something like this...
[gmap |width=100% |height=200px |control=Micro |behavior=+autozoom |nomousezoom=true]
This fix was inspired by Lodey's post #5...Thank you!
Can be viewed at www.bridgeporter.com (beta)
Comment #13
Kimberley_p commented|nomousezoom=true (#5) worked for me. Thanks Lodey!
Comment #14
codigovision commentedI didn't see anyone else mention this but you can also define multiple behaviors like: behavior=+autozoom,+nomousezoom
www.itravelcostarica.com