[OpenLayers-Users] Projections

Gregor at HostGIS gregor at hostgis.com
Mon May 11 18:13:19 EDT 2009


> How can I get OpenLayers to use the native projection that my data's in?

Set the map's projection when it's created:

myproj = new OpenLayers.Projection('EPSG:12345');
map = new OpenLayersMap('map', {projection:myproj})


http://dev.openlayers.org/apidocs/files/OpenLayers/Map-js.html#OpenLayers.Map.projection

-- 
HostGIS, Open Source solutions for the global GIS community
Greg Allensworth - SysAdmin, Programmer, GIS Person, Security
Network+   Server+   A+   Security+



More information about the Users mailing list