Thank you Paul, it works. 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. 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).
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. Is there anything I can do about it ? P.S : I don't know if I made myself clear, if not please ask for details. 2008/7/3 Paul Spencer <[EMAIL PROTECTED]>: > Hi Faldor, > > 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. > > Cheers > > PAul > > > > On 3-Jul-08, at 11:30 AM, Faldor wrote: > > >> Hi all, >> >> Is there a way to display a map of the whole world not centered on Europe >> ? >> Until today I defined the "maxExtent" property of my "map" object with >> (-180, -90, 180, 90). >> I wish to display it centered on Pacific but I tried (0,..,360,..) >> (0,..,0,..) etc... and it didn't work. For exemple with (0,..,360,..) it >> displays from 0 to 180 but cuts the rest. >> >> How can I solve this ? >> I display data from a MapServer server, I tried to edit the EXTENT >> property >> in the mapserver's mapfile but it changed nothing. >> >> Best Regards, >> >> Faldor >> -- >> View this message in context: >> http://www.nabble.com/Displaying-the-whole-world-centered-on-Pacific-tp18260454p18260454.html >> Sent from the OpenLayers Users mailing list archive at Nabble.com. >> >> _______________________________________________ >> Users mailing list >> [email protected] >> http://openlayers.org/mailman/listinfo/users >> > >
_______________________________________________ Users mailing list [email protected] http://openlayers.org/mailman/listinfo/users
