[OpenLayers-Users] Displaying the whole world centered on Pacific

Paul Spencer pagameba at gmail.com
Thu Jul 3 11:59:10 EDT 2008


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
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users




More information about the Users mailing list