[OpenLayers-Users] proj4js transform

Franz S. franz_scherr at hotmail.com
Mon Nov 5 06:16:25 PST 2012


I have a problem with the "transform"-function when the "proj4js.js" is
included.

the following code doesnt work:

/lonlat = new OpenLayers.LonLat(15.638, 48.203);

     lonlat.transform(
            new OpenLayers.Projection("EPSG:4326"), // transform from WGS
1984
            new OpenLayers.Projection("EPSG:900913") // to Spherical
Mercator
          );/

lonlat.lat and lonlat.lon aren't transformed to Spherical Mercator.

Can somebody help?



--
View this message in context: http://osgeo-org.1560.n6.nabble.com/proj4js-transform-tp5014016.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.


More information about the Users mailing list