I think I know why I have the white lines, its because I display squares from a POINT shapefile. The size of the squares is calculated to cover all map (they are 28 km wide and aligned verticaly and horizontaly ocer all the world). But when I generate tiles, the squares get drawn only on the tile on which the point is, so those which should be drawn on 2 tiles get drawn on 1 only and that leave a white line on the other.<br>
<br>Thus, the white lines width vary according to the zoom. Did I make myself clear ?<br><br>Unfortunately, I think its a &quot;normal&quot; problem, but maybe someone knows a trick about this ?<br><br>Regards<br><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;">
Sorry, forgot you were using mapserver. &nbsp;There is no particular difference in this case, probably MapServer is easier because it doesn&#39;t require anything special in the map file.<br>
<br>
I don&#39;t know why you are getting white lines on the borders of your tiles. &nbsp;If you grab the url from one of the tiles and load it directly, does the image have the white borders in it? &nbsp;If yes then it is something to do with your mapserver map file. &nbsp;If not, then it is some artefact coming from openlayers or css, you can use firefox and the firebug extension to inspect your tiles and see where the border is coming from.<br>

<br>
Cheers<br><font color="#888888">
<br>
Paul</font><div><div></div><div class="Wj3C7c"><br>
<br>
On 4-Jul-08, at 11:26 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;">
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 OpenLayers.Layer.MapServer with OpenLayer.Layer.WMS 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>
2008/7/4 Paul Spencer &lt;<a href="mailto:pagameba@gmail.com" target="_blank">pagameba@gmail.com</a>&gt;:<br>
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>
<br>
Paul<br>
<br>
<br>
On 4-Jul-08, at 10:21 AM, Pierre-Benoit Besse wrote:<br>
<br>
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>
<br>
<br>
</blockquote>
<br>
</div></div></blockquote></div><br>