When i checked this options map was still scalable by mousezoom. Dev version has the same problem.

Comments

edemus’s picture

same 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"

bails’s picture

Bump! just checked dev version and the problem still persists.

Exploratus’s picture

I have this problem.... Anyone figured it out?

Anonymous’s picture

lodey’s picture

When 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.

scott_earnest’s picture

hook_form_alter() approach

I ended up doing something along these lines. Maybe it will help someone else out.

// implements hook_form_alter()
function MYMODULE_form_alter(&$form, $form_state, $form_id) {

	switch($form_id) {

	case "custom_node_form":
		$form['field_my_location']['#after_build'][] = 'MYMODULE_gmap_location_behavior';
		break;	// case "custom_node_form"
	}	// switch($form_id)

}	// function MYMODULE_form_alter()

// update the behavior flags on a gmap
function MYMODULE_gmap_location_behavior(&$form_element, &$form_state) {
	$form_element[0]['locpick']['map']['#settings']['behavior']['nomousezoom'] = TRUE;
	return $form_element;
}
alexbk66-’s picture

subscribing

Duplicate issues:

alexbk66-’s picture

Actually, 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]

venutip’s picture

Suggestions 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]

thisisnotrealpeople’s picture

Why 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?

trentharlem’s picture

I 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)

Kimberley_p’s picture

|nomousezoom=true (#5) worked for me. Thanks Lodey!

codigovision’s picture

I didn't see anyone else mention this but you can also define multiple behaviors like: behavior=+autozoom,+nomousezoom

www.itravelcostarica.com