[OpenLayers-Users] disable Zoom-in function?

Christopher Schmidt crschmidt at metacarta.com
Mon Dec 11 16:03:24 EST 2006


On Mon, Dec 11, 2006 at 03:37:33PM -0500, Xiaopeng Xiong wrote:
> I am curious is it possible to disable the functionality of zoom-in when a 
> user draws a rectangluar region using mouse?
> My application just wants users to draw a query region on the map instead of 
> have the map zoomed in...

This would be a non-trivial modification to
OpenLayers.Control.MouseDefaults. I suggest you read and understand the
code there to start: if you have questions on it, please feel free to
come back to the list for explanations.

Regards,
-- 
Christopher Schmidt
MetaCarta



More information about the Users mailing list