Zoom with MouseWheel speed

32 views
Skip to first unread message

Richard Duivenvoorde

unread,
May 24, 2018, 3:51:34 AM5/24/18
to Heron Mapping Client Development
Hi,

When zooming in using the scrollwheel of your mouse in our application AND in the Heron examples you zoom 2 resolutions for every 'tic'.

I think that is too fast. Within a couple of mousewheel-clicks you are on lowest level.

I've searched for some config, but cannot find where the normal OL behaviour is overridden.

Note: http://dev.openlayers.org/examples/zoomLevels.html also zooms one resolution/zoomlevel per click

Pointers appreciated,

Regards,

Richard Duivenvoorde

Just van den Broecke

unread,
May 24, 2018, 5:10:57 AM5/24/18
to geoext-vi...@googlegroups.com
Hi Richard,

Indeed a problem, seeing the "2-step" in several Heron apps.
Cannot directly point to fix, but this behaviour is determined by the
Navigation OL Control. Somehow settings like in a Heron App,
Heron.options.map.settings.controls:

new OpenLayers.Control.Navigation({
dragPanOptions: {enableKinetic: true},
zoomWheelEnabled: true,
mouseWheelOptions: {cumulative: false, interval: 10, delta:
1, maxDelta: 1}
}),

seem to be ignored/overwritten. "delta" determines the zoom steps AFAICS.

Control Defaults are in the MapPanel.js widget:
https://github.com/heron-mc/heron-mc/blob/master/heron/lib/widgets/MapPanel.js


Can you open an issue for this? You may try to fix by setting Navigation
Control options in MapPanel.js. If you can find out more would be nice.

Best,

Just
> --
> --
> You received this message because you are subscribed to the Google
> Groups "geoext-viewer-devel" group.
> To post to this group, send email to
> geoext-vi...@googlegroups.com
> To unsubscribe from this group, send email to
> geoext-viewer-d...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/geoext-viewer-devel?hl=en
>
> ---
> You received this message because you are subscribed to the Google
> Groups "Heron Mapping Client Development" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to geoext-viewer-d...@googlegroups.com
> <mailto:geoext-viewer-d...@googlegroups.com>.
> For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages