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
> http://mail.yahoo.com
>
-- [To unsubscribe to this list send an email to "majdart@bbn.com" with the following text in the BODY of the message "unsubscribe openmap-users"]Received on Thu Nov 15 17:44:09 2007
This archive was generated by hypermail 2.1.8 : Thu Nov 15 2007 - 17:44:10 EST