You don't have to change them. I'm not sure if you are trying to do anything
different, but if you set the map projection to EPSG:900913 and the map
displayProjection to EPSG:4326 then things should just work. If you do get
coordinates in the wrong projection you can use something like
var proj = new OpenLayers.Projection("EPSG:4326");
point.transform(map.getProjectionObject(), proj);
hth
charles
On Dec 1, 2010, at 1:41 PM, muiruri wrote:
>
> Hi,
>
> I am developing an application which displays Maps from Openstreet map and
> layers from GeoServer.
> My GeoServer layers are in EPSG:4326 Projection and I have realized that
> OpenStreet Map is in EPSG:900913 projection. How can I change the projection
> of the Layers to a common projection using gwt-openlayers library.
> thanks.
> --
> View this message in context:
> http://osgeo-org.1803224.n2.nabble.com/Changing-layer-projection-in-gwt-openlayers-tp5793036p5793036.html
> Sent from the OpenLayers Users mailing list archive at Nabble.com.
> _______________________________________________
> Users mailing list
> [email protected]
> http://lists.osgeo.org/mailman/listinfo/openlayers-users
_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users