<HTML dir=ltr><HEAD><TITLE>Re: [OpenLayers-Dev] Map Rotation</TITLE>
<META content="text/html; charset=unicode" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.18852"></HEAD>
<BODY>
<DIV dir=ltr id=idOWAReplyText27984>
<DIV dir=ltr><FONT color=#000000 size=2 face=Arial>So, if using GeoServer, does the ANGLE parameter apply to all features (WFS, WMS, tilecaches, etc..)? </FONT></DIV>
<DIV dir=ltr><FONT size=2 face=Arial>Also, you mention that OL has to know how to handle the rotation. I don't think there's a setting for this now, though, right?</FONT></DIV>
<DIV dir=ltr><FONT size=2 face=Arial></FONT> </DIV>
<DIV dir=ltr><FONT size=2 face=Arial>Is there anyone on the OL team that's thinking about how to handle this?</FONT></DIV>
<DIV dir=ltr><FONT size=2 face=Arial></FONT> </DIV></DIV>
<DIV dir=ltr><BR>
<HR tabIndex=-1>
<FONT size=2 face=Tahoma><B>From:</B> Andrea Aime [mailto:aaime@opengeo.org]<BR><B>Sent:</B> Fri 12/18/2009 2:38 AM<BR><B>To:</B> Stephen Woodbridge<BR><B>Cc:</B> Christopher Schmidt; Alexei Peters; dev@openlayers.org<BR><B>Subject:</B> Re: [OpenLayers-Dev] Map Rotation<BR></FONT><BR></DIV>
<DIV>
<P><FONT size=2>Stephen Woodbridge ha scritto:<BR>> Christopher Schmidt wrote:<BR>>> On Thu, Dec 17, 2009 at 02:39:41PM -0800, Alexei Peters wrote:<BR>>>> Hi Everyone,<BR>>>> I currently work for a small GIS consulting firm and one of the projects we're currently working on has a potential requirement for rotating the map (so north doesn't point up, but rather to the right for example).<BR>>>> <BR>>>> Has anyone any idea of how to do this, or has done this? My company would be even willing to fund this effort if need be.<BR>>>> <BR>>>> I'd love to hear anyone's thoughts on this.<BR>>> 1. In Javascript/Images/DOM (ignoring Canvas for the moment), there is<BR>>> no way to make an image exist on an angle.<BR>>> 2. Canvas has some support for this, I believe, but is limited in where<BR>>> you can use it.<BR>>><BR>>> Generally speaking, what you would do to solve this problem would be to<BR>>> pre-rotate your map (in a tool like photoshop, or something equally non<BR>>> OpenLayers related), and then work with at that point. Some people on<BR>>> the list have had some experience with that way of using OpenLayers; a<BR>>> key aspect of this would be to write a translation from your map coordinates<BR>>> (which will likely be in pixels after the rotation) to geogrpahic coordinates,<BR>>> but that's not too hard, in general.<BR>>><BR>>> Best Regards,<BR>><BR>> If you are using mapserver I believe there has been some work that would<BR>> allow the image to draw with north rotated say to the east. Look for the<BR>> ANGLE parameter in the MAP object.<BR><BR>In GeoServer land we're about to add the same parameter.<BR>However, once you rotate the map OL has to know and handle the rotation<BR>otherwise panning and zooming go bye bye...<BR><BR>Cheers<BR>Andrea<BR><BR>--<BR>Andrea Aime<BR>OpenGeo - <A href="http://opengeo.org/">http://opengeo.org</A><BR>Expert service straight from the developers.<BR></FONT></P></DIV></BODY></HTML>