Yeah okay that makes sense. There is a worldToScreen transformation in the work Michael is doing as well. Checking it over I only see it defined by:
- afterImageMove(ReferencedEnvelope mapAOI, Rectangle paintArea)
- setMapArea(Envelope env)

So I think some work will be needed to hook this one up. My preference would be to always define the: center location; scale and rotation - rather then a rectangle as is currently done.

Jody

On 23/08/2009, at 5:01 PM, Andrea Aime wrote:

Jody Garnett ha scritto:
They will if you add it to the MapContext - not sure if our pal Micahel will get to it this release :-)
Please thank the user that contributed this.

Hmmm... not sure it needs to be in the MapContext at all?
The old ZoomPane supported this almost out of the box without modifications. You just need to call the paint method passing
an AffineTransform instead of two rectangles (the screen one,
and the geographic area to be painted one).

Cheers
Andrea

--
Andrea Aime
OpenGeo - http://opengeo.org
Expert service straight from the developers.

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to