<html>
  <head>

  </head>
  <body style="margin-top: 4px; font-size: 12pt; font-style: normal; font-family: Lucida Grande; font-variant: normal; margin-bottom: 1px; margin-right: 4px; margin-left: 4px; font-weight: normal; line-height: normal">
    <p style="margin-bottom: 0; margin-top: 0">
      <font face="Lucida Grande" size="3">The 180 problem.</font>    </p>
<br>      
    <p style="margin-bottom: 0; margin-top: 0">
      <font face="Lucida Grande" size="3">Based in New Zealand we constantly want to draw a polygon to select search areas that cross the anti-meridian. While I have managed to fake areas that cross that line by using invalid coordinates such as 190E the polygon then disappears when the center of the map crosses to the other side of the line. To combat that I make two copies of the original polygon&#44; one in the world to the east &#40;&#43;&#61; 360 on every point&#41; and one to the west &#40;-&#61; 360 on every point&#41;. That solves rendering a known polygon&#44; but when the user is clicking on the map to define their own area they can&#39;t cross the anti-meridian without their line going around the long way.</font>    </p>
<br>      
    <p style="margin-bottom: 0; margin-top: 0">
      <font face="Lucida Grande" size="3">&#126;Craig</font>    </p>
    <p style="margin-bottom: 0; margin-top: 0">
      <br>
      <br>
      &gt;&gt;&gt; Marc Jansen &lt;jansen@terrestris.de&gt; 8/5/2011 7:26 PM &gt;&gt;&gt;<br>Hi all&#44;<br><br>for my talk &quot;Common pitfalls for users of OpenLayers&quot; &#91;1&#93; at this years<br>FOSS4G &#91;2&#93; I want to evaluate the parts of OpenLayers where users of the<br>library experience problems.<br><br>You would help me -- and the project itself -- a lot if you could answer<br>in this thread and tell me what problems you had working with OpenLayers.<br><br>Please do not hesitate to tell us what has bugged you&#44; what was unclear<br>or non-intuitive. Provide us with the sall and the big annoyances Of<br>course you are heavily encouraged to provide ways around the pitfalls<br>and possible enhancements.<br><br>I want to identify areas which often cause problems... and eventually I<br>plan on making the library better where this is possible.<br><br>Anyone is invited to share his/her thoughts -- so if you want the<br>library to improve&#44; go on and tell us where we can make things better.<br><br>Thanks in advance&#44;<br>Marc<br><br><br>&#91;1&#93; <a href="http://2011.foss4g.org/sessions/common-pitfalls-users-openlayers">http://2011.foss4g.org/sessions/common-pitfalls-users-openlayers</a><br>&#91;2&#93; <a href="http://2011.foss4g.org/">http://2011.foss4g.org/</a><br>_______________________________________________<br>Users mailing list<br>Users@lists.osgeo.org<br><a href="http://lists.osgeo.org/mailman/listinfo/openlayers-users">http://lists.osgeo.org/mailman/listinfo/openlayers-users</a><br>
    </p>
  <BR>

    <div>
      Please consider the environment before printing this email.<br><br>NIWA 
      is the trading name of the National Institute of Water &amp; Atmospheric 
      Research Ltd.
    </div>
  </BODY></HTML>