Re: [OpenMap Users] Setting Zoom Levels

From: Don Dietrick <>
Date: Thu, 15 Nov 2007 17:40:42 -0500

Hi Sammy,

I would add a ProjectionListener to the MapBean and throw a
ProjectionChangeVetoException if the projection gets changed to
something you don't want.

- Don

Sammy Morgan wrote:
> Dear Open-Mappers,
> A) I would like to restrict the zoom level both maximum and minimum so
> that the user cannot zoom out beyond a specific scale/float, as well
> as limit the zooming in action so that it doesn't go below than a
> specific float/scale.
> What is the best way to do this? A not too elegant way that im
> considering would be to listen to the zoom events and once outside of
> a range, automatically set the scale back to within the range by
> calling mapbean.setScale(); I would be appreciative of another approach
> Best Regards
> Samuel Morgan
> TryCatch Interactive
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around

[To unsubscribe to this list send an email to ""
with the following text in the BODY of the message "unsubscribe openmap-users"]
Received on Thu Nov 15 2007 - 17:40:48 EST

This archive was generated by hypermail 2.3.0 : Tue Mar 28 2017 - 23:25:08 EDT