I don&#39;t know much about layer types. Why a WMS layer would do better than a MapServer layer with my problem ?<br><br>I tried it anyway, replacing <b>OpenLayers.Layer.MapServer</b> with <b>OpenLayer.Layer.WMS </b>for the population density layer, but it changed nothing, I still have white lines on the borders of tiles.<br>
<br>Cheers,<br><br>Faldor<br><br><div class="gmail_quote">2008/7/4 Paul Spencer &lt;<a href="mailto:pagameba@gmail.com">pagameba@gmail.com</a>&gt;:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
singleTile doesn&#39;t do anything special to support the wrapDateLine property, the underlying mapping technology just doesn&#39;t know how to draw a map that spans the date line.<br>
<br>
A feature enhancement of the singleTile mode when the wrapDateLine property is set might be to actually have more than one tile where each tile is lined up with the date line. &nbsp;So there would be one &#39;singleTile&#39; from the left edge of the extent to the date line, one from first date line to the next (and so on) and a final one from the date line to the right edge of the extent.<br>

<br>
Unless you are willing to work on this, though, you may do better to set up a tiled layer using WMS rather than a singleTile layer.<br>
<br>
Cheers<br><font color="#888888">
<br>
Paul</font><div><div></div><div class="Wj3C7c"><br>
<br>
On 4-Jul-08, at 10:21 AM, Pierre-Benoit Besse wrote:<br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Thank you Paul, it works.<br>
<br>
But I have an other problem now. I have a point shapefile containing population density. I display each point as a square to cover the entire map without holes.<br>
To do it I had to set the singleTile property of the layer to &quot;true&quot; or I had white lines on tiles borders (the squares are drawn only on the tile containing the point).<br>
<br>
But it doesn&#39;t work with a wrapDateLine to &quot;true&quot; too. It cuts the map at long 180 (-180) and switches to one &#39;side&#39; or the other, but it never displays both side at once.<br>
<br>
Is there anything I can do about it ?<br>
<br>
P.S : I don&#39;t know if I made myself clear, if not please ask for details.<br>
<br>
2008/7/3 Paul Spencer &lt;<a href="mailto:pagameba@gmail.com" target="_blank">pagameba@gmail.com</a>&gt;:<br>
Hi Faldor,<br>
<br>
you do need to use -180 -&gt; 180, but I think you can get this to work using the wrapDateLine propery, see the wrapDateLine.html example and then set the center of your map to a geographic location in the pacific.<br>
<br>
Cheers<br>
<br>
PAul<br>
<br>
<br>
<br>
On 3-Jul-08, at 11:30 AM, Faldor wrote:<br>
<br>
<br>
Hi all,<br>
<br>
Is there a way to display a map of the whole world not centered on Europe ?<br>
Until today I defined the &quot;maxExtent&quot; property of my &quot;map&quot; object with<br>
(-180, -90, 180, 90).<br>
I wish to display it centered on Pacific but I tried (0,..,360,..)<br>
(0,..,0,..) etc... and it didn&#39;t work. For exemple with (0,..,360,..) it<br>
displays from 0 to 180 but cuts the rest.<br>
<br>
How can I solve this ?<br>
I display data from a MapServer server, I tried to edit the EXTENT property<br>
in the mapserver&#39;s mapfile but it changed nothing.<br>
<br>
Best Regards,<br>
<br>
Faldor<br>
-- <br>
View this message in context: <a href="http://www.nabble.com/Displaying-the-whole-world-centered-on-Pacific-tp18260454p18260454.html" target="_blank">http://www.nabble.com/Displaying-the-whole-world-centered-on-Pacific-tp18260454p18260454.html</a><br>

Sent from the OpenLayers Users mailing list archive at Nabble.com.<br>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@openlayers.org" target="_blank">Users@openlayers.org</a><br>
<a href="http://openlayers.org/mailman/listinfo/users" target="_blank">http://openlayers.org/mailman/listinfo/users</a><br>
<br>
<br>
</blockquote>
<br>
</div></div></blockquote></div><br>