public
Created

pseudo code for js level map projection transform

  • Download Gist
gistfile1.txt
1 2 3 4
// Google.v3 uses EPSG:900913 as projection, so we have to
// transform our coordinates
mapProjection = map.getProjectionObject()
map.setCenter(new OpenLayers.LonLat(map_center_lon, map_center_lat).transform(defaultProjection, mapProjection), map_zoom)

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.