[OpenLayers-Trac] Re: [OpenLayers] #3411: Correct Longitude when Wrapping Dateline

OpenLayers trac-20090302 at openlayers.org
Thu Jul 14 12:11:06 EDT 2011


#3411: Correct Longitude when Wrapping Dateline
---------------------+------------------------------------------------------
 Reporter:  cayenne  |       Owner:              
     Type:  bug      |      Status:  new         
 Priority:  minor    |   Milestone:  2.12 Release
Component:  Util     |     Version:  2.10        
 Keywords:           |       State:              
---------------------+------------------------------------------------------

Comment(by cayenne):

 @ahocevar

 Okay, I will do so.  I'll need to learn yet another system, but that's
 part of the fun.

 It's just a single line, but I'll go learn the patch process for svn.

 coordinate = (coordinate+540)%360 - 180; // normalize for sphere
 wraparound

-- 
Ticket URL: <http://trac.openlayers.org/ticket/3411#comment:3>
OpenLayers <http://openlayers.org/>
A free AJAX map viewer


More information about the Trac mailing list