[OpenLayers-Users] How does the transform-function work?

Marten Andersson Marten.Andersson at smhi.se
Tue Nov 25 06:17:25 EST 2008


I'm answering my own question..

The answer is: "read the f*****g manual" :)
The problem was that I forgot to include the proj4js-lib...




On Tue, 2008-11-25 at 11:02 +0100, Marten Andersson wrote:
> Hello!
> I have some problems with the transform-function in the point-class..
> This is the code that I'm using:
> 
> var lonLat = point.transform(map.getProjectionObject(),new
> OpenLayers.Projection("EPSG:4326"));
> alert(lonLat.toShortString());
> 
> The map projection is "EPSG:2400" and the coordinates are still the same
> after the conversion.
> 
> Does anyone know how this should be done?
> 
> Best regards: Mårten
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users
> 



More information about the Users mailing list