[OpenLayers-Trac] Re: [OpenLayers] #3050: OpenLayers is drawing layers at wrong coordinates

OpenLayers trac-20090302 at openlayers.org
Wed Feb 9 15:42:11 EST 2011


#3050: OpenLayers is drawing layers at wrong coordinates
-----------------------+----------------------------------------------------
 Reporter:  scap2000   |       Owner:  euzuro      
     Type:  bug        |      Status:  new         
 Priority:  critical   |   Milestone:  2.11 Release
Component:  Layer.WMS  |     Version:  2.10        
 Keywords:             |       State:              
-----------------------+----------------------------------------------------

Comment(by scap2000):

 Update #2:

 My mistake, on Update #1 I forgot to do the projection, so the line with
 corrections is shown below


 {{{
             markers.addMarker(new OpenLayers.Marker(new
 OpenLayers.LonLat(-65.4013118577086, -24.7894029247747).transform(new
 OpenLayers.Projection("EPSG:4326"), new
 OpenLayers.Projection("EPSG:900913")),icon));

 }}}

 And the marker is drawn on the right coords, no matter the zoom level
 achieved.

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


More information about the Trac mailing list