Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #1
zzolo CreditAttribution: zzolo commentedHey @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.
Comment #2
ressa CreditAttribution: ressa commentedHey 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.
Comment #3
nod_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.
Comment #4
ressa CreditAttribution: ressa commentedThat 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
Comment #5
zzolo CreditAttribution: zzolo commentedHi @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?
Comment #6
sano CreditAttribution: sano commentedI 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?
Comment #7
zzolo CreditAttribution: zzolo commentedHmmm. Not sure. can you provide exactly what versions of what modules you are using (OL Geocoder and OpenLayers).
Comment #8
sano CreditAttribution: sano commentedHi 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)
Comment #9
ressa CreditAttribution: ressa at Ardea commented