Hey,

It's my impression that you are out of luck for simple solutions since
the renderer that JMapPane uses was not built to simply concatenate a
string of transforms. That would have allowed you to simply add on one
more affine transform and still be able to remap both data to your pane
and mouse-clicks back to features. As things now stand, it will be hard
to rotate your rendering and have things work out correctly---apparently
people have tried before and things were weird. 

So either you have to do some gnarly coding and fix the renderer, do
some elegant hacking and wrap the renderer, or some patient waiting for
the old J2Renderer to come back from the dead. Actually, it's alive but,
like a zombie, doesn't yet have a home where it can land since it's
built on a string of incompatibilities (like java 1.6) compared to the
geotools code base.

--adrian


On Sun, 2008-12-07 at 19:05 +0100, Benoît Thiébault wrote:
> Hi list,
> 
> I have created my datastore to read data from a file. I now display  
> the data correctly with a JMapPane and allow the user to zoom, pan,  
> change projection, etc.
> 
> What I would like to do is to allow the user to rotate the map.
> 
> I know I could just do a rotation of each point coordinates that are  
> stored in my featureSource, but I think this is wrong because rotating  
> the map means rotating the projected data, not the "real" coordinates  
> on the reference ellipsoide.
> 
> Do you know how to do that ? Is there a tutorial or an example ? I  
> didn't find anything in the user guide...
> 
> Thanks !
> 
> ------------------------------------------------------------------------------
> SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
> The future of the web can't happen without you.  Join us at MIX09 to help
> pave the way to the Next Web now. Learn more and register at
> http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
> _______________________________________________
> Geotools-gt2-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users


------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to