[OpenLayers-Users] wheel zooming: want to turn off re-centre of map at mouse location

Christopher Schmidt crschmidt at metacarta.com
Sun Oct 28 20:13:00 EDT 2007


On Mon, Oct 29, 2007 at 12:24:06AM +0100, Trond Michelsen wrote:
> On Tue, Oct 23, 2007 at 11:41:49AM -0400, Michael Quentel wrote:
> > In Navigation.js, it appears that the wheelChange function gets the
> > event x y, and not only zooms in or out, but also appears to re-centre
> > on the mouse event location.  Is this correct?
> 
> In my opinion, it is not. This behaviour means that if you put the
> mousepointer over an area, and zoom in more than once, the second (and
> third, etc.) zoom will zoom in on a different area than the first. I
> don't think this behaviour is very intuitive.

I'm not sure if you're responding to Michael's question with "This is
the current behavior", or "this is what I expect." The above described
is not what the current behavior is -- what you described below is the
current behavior.


> I think the map still needs to recenter after the zoom, but it should
> keep the coordinates at the mousepointer the same as it was when the
> zoom was started.

Regards,
-- 
Christopher Schmidt
MetaCarta



More information about the Users mailing list