Even if both 'Navigation' and 'Enable Zoom Wheel' are disabled under 'OpenLayers' -> 'Behaviors' -> 'Navigation' -> 'Enable Zoom Wheel', the map still zooms in and out when rolling the mouse wheel over maps in a form. When viewing the map on a page the zooming is disabled, as expected.

Comments

zzolo’s picture

Status: Active » Closed (works as designed)

Hey @ressa. Sorry for the delay. Did you figure this out? What forms specifically? Navigation with MouseWheel unchecked should work for sure.

Closing for now; please feel free to re-open if you are still having issues.

ressa’s picture

Status: Closed (works as designed) » Active

Hey zzolo, no problem, I am glad you're back :-)

I think the problem is that 'Mouse Wheel Zoom' is enabled even though that and 'Navigation' are both disabled, and the field set collapsed. But the problem is only on edit forms.

nod_’s picture

Might sound like a stupid thing but hey,
Input and display can be two differents maps/presets, are you sure you unchecked for the right map ? Nothing looks wrong in the code.

ressa’s picture

That could have been it, but I checked and it isn't :-)

I am using the OpenLayers Geocoder module, perhaps it's overriding the settings?
http://drupal.org/project/openlayers_geocoder

zzolo’s picture

Category: bug » support

Hi @ressa. A quick glance at OL Geocoder doesn't seem to reveal anything. Are you getting any JS errors? Can you export your map preset?

sano’s picture

I am also seeing that on an "OpenLayers WKT" cck field configured to show OpenLayers map - when displayed in node editing mode the map is being zoomed when mouse is positioned into the map and the mouse wheel is rotated. I have several content types and I see this behavior on all of them. In the "view" mode the map rendered by that cck field is not zoomable with the mouse wheel because it is using an OL preset where I disabled mouse wheel zooming. Maybe I am missing some setting somewhere that would turn off mouse wheel zoom when OpenLayers WKT field is shown in editing mode?

zzolo’s picture

Hmmm. Not sure. can you provide exactly what versions of what modules you are using (OL Geocoder and OpenLayers).

sano’s picture

Hi zzolo,

These are the versions in my installation:

OpenLayers
6.x-2.0-beta1

Geocode
6.x-1.0-alpha2

I did not find anything called "OL Geocoder" but maybe I guessed the correct module name (Geocode)

ressa’s picture

Issue summary: View changes
Status: Active » Closed (outdated)