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 "true" or I had white lines on tiles borders (the squares are drawn only on the tile containing the point).<br>
<br>But it doesn't work with a wrapDateLine to "true" too. It cuts the map at long 180 (-180) and switches to one 'side' 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't know if I made myself clear, if not please ask for details.<br><br><div class="gmail_quote">2008/7/3 Paul Spencer <<a href="mailto:pagameba@gmail.com" target="_blank">pagameba@gmail.com</a>>:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi Faldor,<br>
<br>
you do need to use -180 -> 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><font color="#888888">
<br>
PAul</font><div><div></div><div><br>
<br>
<br>
On 3-Jul-08, at 11:30 AM, Faldor 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;">
<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 "maxExtent" property of my "map" 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'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'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>
</blockquote>
<br>
</div></div></blockquote></div><br>