[OpenLayers-Users] Projection support

Paul Spencer pagameba at gmail.com
Tue Jun 10 07:40:05 EDT 2008


Hi,

you need to include proj4js.js (http://proj4js.org/) in your web page  
and then you can do something like:

var position = map.getCenter();
position.transform(new OpenLayers.Projection('EPSG:900913'), new  
OpenLayers.Projection('EPSG:23036'));

I'm not sure if proj4js will automatically know that 23036 is a UTM  
projection or not, you may need to set it up (a question for the  
proj4js perhaps)

Cheers

Paul

On 10-Jun-08, at 6:48 AM, Alper Dinçer wrote:

> Hi,
>
> I have a google map as a base in OpenLayers 2.6. I want to get the  
> lat/lng value on the map in EPSG 23036 (ED50 -  UTM Zone 36N)  
> projection.
>
> I google it, but I didn't find any example about this issue.
>
> Is there any example for projection support?
>
> Thanks.
>
>
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users




More information about the Users mailing list