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

OpenLayers trac-20090302 at openlayers.org
Thu Jul 14 11:18:05 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:              
 The getFormattedLatLon function works fine except in the vicinity of a
 dateline wrap.  Then it displays spurious values like 215E.

 This can be fixed with a minor change to the routine using addition,
 subtraction, and modulo.  It might be more efficient to use an "if>180"
 test, but my revised code works.

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

More information about the Trac mailing list