[OpenLayers-Dev] drawfeature handlers for crossing the 180 line.

Phil Scadden p.scadden at gns.cri.nz
Mon Aug 9 19:59:05 EDT 2010


I've been looking at Piero Campa's code for handling vector drawing the 
180 line is within the mapextent. If the 180 line is present, then 
drawing only works on the eastern side of the line.

Ideally, the code handling for  IDL should be part of Path, Polygon, 
Regular Polygon and Box.

First question though is about globals. The code needs to know what 180 
degree of longitude is in projected coordinates. Rather than making this 
a property of each handler, it would be make sense for this to be global 
variable and calculated only when projection changes. Should this be 
added as a property of map? If not, is there some more appropriate place 
to store this?


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.




More information about the Dev mailing list