[OpenLayers-Dev] Patrch for getting vector drawing working over the 180 line going.

Andreas Hocevar ahocevar at opengeo.org
Mon Aug 16 03:30:49 EDT 2010


Hey Phil,

thanks for your efforts on this! The reason why I recommended to just use the maxExtent is because for OpenLayers 3.0, we are planning a Location object that will replace LonLat and Geometry.Point, which will be aware of projections. So any efforts in that direction done now won't live long. For now, if you use wrapDateLine: true, you just should use the maxExtent of the whole world. If you want to restrict where the user can pan to, configure restrictedExtent on the map.

Regards,
Andreas.

On Aug 16, 2010, at 04:22 , Phil Scadden wrote:

> Got another question here. I dont think you can use maxextent to get the 
> required correction to apply since a user may change it. I also notice 
> that the logic used seems to apply to rectilinear projections - it 
> wouldnt be accurate for say conic projections. It seems that accurate 
> way to transform geometry crossing the 180 is unproject to pixel then 
> reproject again but without 180 corrections.
> -- 
> Phil Scadden, Senior Scientist GNS Science Ltd 764 Cumberland St, 
> Private Bag 1930, Dunedin, New Zealand Ph +64 3 4799663, fax +64 3 477 5232
> 
> Notice: This email and any attachments are confidential. If received in error please destroy and immediately notify us. Do not copy or disclose the contents.
> 
> _______________________________________________
> Dev mailing list
> Dev at openlayers.org
> http://openlayers.org/mailman/listinfo/dev



-- 
Andreas Hocevar
OpenGeo - http://opengeo.org/
Expert service straight from the developers.




More information about the Dev mailing list