[OpenLayers-Users] issue with mousewheel zoom...

John Cole john.cole at uai.com
Fri Dec 8 09:47:15 EST 2006


I saw that mouse wheel zooming recently changed to zoom to the point under
the mouse.  Unfortunately, there is a problem with the current
implementation.  It would be nice to have an option to use the simpler zoom
in/out on center also.

When you allow multiple zooms on the mouse wheel, you will end up somewhere
other than where your mouse is.  The reason for this is the new center point
is calculated with the new zoom level boundaries, instead of the original.
The mouse zoom should not update the extent until the map has reloaded.

For an example, using the SVN openlayers, bring up a map with the
mousedefault control, put the mouse over a feature near the edge of the map
and give the mouse wheel a good turn up (zoom in), the new zoom point will
have drifted way off, and your feature will not appear on the map.  If you
scroll only on click, it works perfectly.

Also, is there a way to expand or shrink a layer, so that when you zoom, the
map can be expanded/shrunk in real time until the layers can be refreshed?
Doing this really helps visualize where your zooming to and it is really
important when mouse wheel zooming to know what level your zooming to.

Finally,  when mouse wheel zooming, if you zoom in or out and back to your
original level, it should be treated as a pan or simply canceled, so the
layers don't (necessarily) have to be refreshed.

Thanks,

John Cole
This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the sender. This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail.



More information about the Users mailing list