Hi,
You will have to make your own NavCommand. I think you extend
AbstractNavCommand and make the following call in the run method:
map.getViewportModelInternal().setScaleDenominator( scale ).
Don't for get to add the undo functionality.
Jesse
On 19-Mar-07, at 9:57 AM, [EMAIL PROTECTED] wrote:
Hi list,
some of my users don't want to use the text field below the map for
setting the scale (denominator) nor want they use the zoom in or
zoom out action. Therfore I will give them a slider widget with
which they can set the scale from 1:10.000 to 1:1.000.000 (or
something like that).
But how do I set the scale denominator for the actual map. I found
no NavigationCommand for this. I checked the
NavigationCommandFactory.getInstance.create... commands where I
already use the ViewportCenterCommand for annother gimmick.
Can somehone help me with this?
thanks,
tony roth
_______________________________________________
User-friendly Desktop Internet GIS (uDig)
http://udig.refractions.net
http://lists.refractions.net/mailman/listinfo/udig-devel
_______________________________________________
User-friendly Desktop Internet GIS (uDig)
http://udig.refractions.net
http://lists.refractions.net/mailman/listinfo/udig-devel