Hello Jani,<br><br>I was coming across a very similar problem to yours.  I needed to represent networks that spanned the IDL, with points and lines. (<a href="http://www.sourcemap.org/beta/stage/index.php/objects/object-105">http://www.sourcemap.org/beta/stage/index.php/objects/object-105</a>)   The way that I got around the wrapping was to add points and lines as multi-point and multi-line geometry collections.  1 geometry would lie within the bounds of the coordinate system (-180 to 180, in your case below), and the other geometries would be -x and +x * 360.  For example, mapping 0, 51.47722 (Greenwich, UK), would place points at -360, 0, and 360.  One could extend this as many times as necessary, based on the aspect and maxExtent of the map.<br>
<br>This approach adds a bunch of features to the map, but gets rid of the flipping when the map is scrolled over the IDL.<br><br>David<br><br><div class="gmail_quote">On Mon, Jun 29, 2009 at 5:41 AM, Jani Patokallio <span dir="ltr">&lt;<a href="mailto:jpatokal@iki.fi">jpatokal@iki.fi</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Greetings,<br>
<br>
I have an OpenLayers app (<a href="http://openflights.org" target="_blank">http://openflights.org</a>) with maps that are<br>
scaled according to the user&#39;s screen resolution and, when zoomed out,<br>
span the entire globe (maxExtent -180,-90.0,180.0,90.0).  Based on my<br>
experimentation, it appears that...<br>
<br>
If I specify &quot;maxResolution: auto&quot;:<br>
+ the map is scaled correctly according to the user&#39;s screen size, with<br>
the whole world displayed by default<br>
- random gaps appear at the dateline, depending on the user&#39;s screen size<br>
<br>
If I specify &quot;maxResolution: 0.3515625&quot; (*)<br>
+ there is never any dateline gap<br>
+ the map is scaled correctly on a 1024x768 display<br>
- only a portion of the world is visible at 800x600<br>
<br>
So am I really forced to make a choice between one and the other?  For<br>
reference:<br>
<br>
var mapOptions = {<br>
 maxResolution: 0.3515625,<br>
 restrictedExtent: new OpenLayers.Bounds(-9999, -90, 9999, 90),<br>
 maxExtent: new OpenLayers.Bounds(-180,-90.0,180.0,90.0),<br>
 numZoomLevels: 8,<br>
};<br>
<br>
(*) derived experimentally from the sequence in<br>
<a href="http://trac.openlayers.org/wiki/SettingZoomLevels" target="_blank">http://trac.openlayers.org/wiki/SettingZoomLevels</a>.<br>
<br>
Cheers,<br>
-jani<br>
<br>
<br>
<br>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@openlayers.org">Users@openlayers.org</a><br>
<a href="http://openlayers.org/mailman/listinfo/users" target="_blank">http://openlayers.org/mailman/listinfo/users</a><br>
</blockquote></div><br>