Hi Jeff,
The easiest thing is to create a new plugin with your customized zoom
tools. The distance tool tutorial explains how to create a tool and
plugin. The NavCommandFactory is a good place to look for commands
that can be used to modify the ViewportModel. Nav commands are used
to change the zoom and bounds of the map. You can get at an instance
of the class from a tool implementation with the line:
getContext().getNavCommandFactory().
Jesse
On 28-Mar-06, at 3:05 PM, Jeffrey Bergamini wrote:
Hi everybody,
First, congratulations on all that uDig has become! It's a great tool.
I'm working on an academic project that involves a WMS/WFS proxy/
cache system that imposes some regulation on the bounding boxes of
requests, i.e. they must be along certain grid lines (defined in
WGS 84). I'd like to use uDig as a demonstration client, so that
means I need to hook into the zooming/selection mechanisms and make
sure uDig is making requests along those boundaries.
What I have in mind (for an initial, simple, just-works
demonstration) is that a user should be able to either:
Press the Zoom button, and uDig will zoom to the most appropriate
next tile; or
Use the Adjust Current Zoom tool to select a new area, and uDig
will make minor adjustments so that the area's boundaries lie along
the grid lines.
I'm using standard WMS/WFS with a simple extended Capabilities doc
element that notifies a client that this tiling scheme is available.
I've begun looking the at the plugin development tutorials and
skimming some of the uDig source, but I think asking this list
would be a more efficient way of getting started. Can anyone point
me in the right direction as far as where this can and should be
accomplished in code? Can it be developed as a plugin, or should I
make a custom version of uDig for myself?
Any help is greatly appreciated, and I figure that a couple minutes
of typing time from those of you who are pretty familiar with uDig
will save me many hours of wading through docs and code.
Thanks a lot, and again, keep up the good work.
Jeff Bergamini
_______________________________________________
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