Hello Sylvain,<br><br>In my experience, I did the coordinate 
recalculations in javascript, and dynamically constructed the geometries
 for the OpenLayers objects.  I haven&#39;t tried the approach of having 2 
vector layers, although I am thinking that the 2 vector layers may not 
work as expected.<br><br>The reason I say that: I have a feeling that 
only 1/2 the vectors will be rendered at one time if you use the 2 
vector layers as described. I&#39;ll break out some ASCII art to 
demonstrate:<br><br><span style="font-family: courier new,monospace;">+++++++++++++++++++++++++</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">+        |              +</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">+        ************************</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">+        |              +       *</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">+        *              +       *</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">+        |              +       *<br>
+        *              +       *<br>
+        |              +       *<br>
+        ************************<br>
+        |              +<br>
+++++++++++++++++++++++++<br>
  <br>
  <span style="font-family: arial,helvetica,sans-serif;">In the above diagram:</span><br>
  <span style="font-family: arial,helvetica,sans-serif;">  +++ : the extent of the map</span><br style="font-family: arial,helvetica,sans-serif;">
  <span style="font-family: arial,helvetica,sans-serif;">  *** : the bounds of the vector layers (vectorWest and vectorEast)</span><br style="font-family: arial,helvetica,sans-serif;">
  <span style="font-family: arial,helvetica,sans-serif;">  |   : the IDL</span><br style="font-family: courier new,monospace;">
</span><br>
In this scenario, one of the vector feature layers will be rendered in 
the left side of the *** box, and one of the vector feature layers will 
be rendered in the right side of the *** box -- note that this is 
outside the map extent. When the client pans across the IDL, the vector 
layer will get shifted by OL to the opposite side of the IDL. Then the 
scenario becomes:<br>
<br>
<span style="font-family: courier new,monospace;">        +++++++++++++++++++++++++</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">        +              |        +</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">************************        +</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">*       +              |        +</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">*       +              *        +</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">*       +              |        +<br>
*       +              *        +<br>
*       +              |        +<br>
************************        +<br>        +              |        +<br>        +++++++++++++++++++++++++</span><br style="font-family: courier new,monospace;">
<br>
And you&#39;ll see the same effect as above, where features in the opposite 
side of the vector layer will not be displayed. One vector feature layer
 will be positioned in the left hand side of the *** box, which is 
outside the map extent.<br>
<br>
I think you&#39;ll need to adapt your logic to do the coordinate shifting 
and feature replication in Javascript.  You can hook into the layers 
&#39;beforefeaturesadded&#39; event to modify the features to multi-features, if
 you want to use one json file request &amp; load.<br>
<br>
Let me know how you&#39;re able to finally get this working, I&#39;m curious to know if there&#39;s another way around it.<br>
<br>
z<br><br>On Tue, Aug 31, 2010 at 2:41 AM, springrider &lt;<a href="mailto:springrider@hotmail.com" target="_blank">springrider@hotmail.com</a>&gt; wrote:<br>&gt;<br>&gt; Hello David,<br>&gt; Thanks for your reply, i have followed your recommendations and have now 2<br>

&gt; vectors layers containing same type of data but with coordinates adapted to<br>&gt; each side of the date line (-179 becoming +181 in one file and 179 becoming<br>&gt; -181 in the other).<br>&gt; vectorsWest = new OpenLayers.Layer.GML( &quot;Releases&quot;, &quot;pacific_W.json&quot;,<br>

&gt;                                                { format:<br>&gt; OpenLayers.Format.GeoJSON,<br>&gt;                                                  styleMap: styleMap,<br>&gt;                                                  isBaseLayer: false,<br>

&gt;                                                  projection: new<br>&gt; OpenLayers.Projection(&quot;EPSG:4326&quot;)}<br>&gt;                                                                                                );<br>

&gt;            vectorsEast = new OpenLayers.Layer.GML( &quot;Releases&quot;,<br>&gt; &quot;pacific_E.json&quot;,<br>&gt;                                                { format:<br>&gt; OpenLayers.Format.GeoJSON,<br>&gt;                                                  styleMap: styleMap,<br>

&gt;                                                  isBaseLayer: false,<br>&gt;                                                  projection: new<br>&gt; OpenLayers.Projection(&quot;EPSG:4326&quot;)}<br>&gt;                                                                                                );<br>

&gt;<br>&gt; Would i have to add 2 vector layers or do you think the coordinate<br>&gt; recalculations could be done at OL level from a unique Json file?<br>&gt;<br>&gt; Thanks<br>&gt;<br>&gt; Sylvain<br>&gt; --<br>&gt; View this message in context: <a href="http://osgeo-org.1803224.n2.nabble.com/Vector-points-over-the-dateline-tp5478314p5481381.html" target="_blank">http://osgeo-org.1803224.n2.nabble.com/Vector-points-over-the-dateline-tp5478314p5481381.html</a><br>

&gt; Sent from the OpenLayers Users mailing list archive at Nabble.com.<br>&gt; _______________________________________________<br>&gt; Users mailing list<br>&gt; <a href="mailto:Users@openlayers.org" target="_blank">Users@openlayers.org</a><br>

&gt; <a href="http://openlayers.org/mailman/listinfo/users" target="_blank">http://openlayers.org/mailman/listinfo/users</a><br><br>