[OpenLayers-Trac] Re: [OpenLayers] #3639: setCenter not working with google map

OpenLayers trac-20090302 at openlayers.org
Thu Mar 22 01:44:21 EDT 2012


#3639: setCenter not working with google map
-----------------------+----------------------------------------------------
  Reporter:  djasinsk  |       Owner:        
      Type:  feature   |      Status:  closed
  Priority:  critical  |   Milestone:        
 Component:  general   |     Version:  2.11  
Resolution:  invalid   |    Keywords:        
     State:            |  
-----------------------+----------------------------------------------------
Changes (by ahocevar):

  * status:  new => closed
  * resolution:  => invalid


Comment:

 You have to transform your coordinates to Web Mercator:
 {{{
 new OpenLayers.LonLat(x, y).transform(new
 OpenLayers.Projection("EPSG:4326"), new
 OpenLayers.Projection("EPSG:900913"));
 }}}

 Please note that this is an issue tracker, so I'm closing rhis ticket
 since there is no issue.

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


More information about the Trac mailing list