Hi, i'm trying to add a OSM layer to a map which already has some other
layers with srs: 'EPSG:3003' (italian Gauss Boaga) but the OSM layer is not
aligned with the other layers.
I mean that epsg:3003 layers are (correctly) centered in one town

http://www.openstreetmap.org/?lat=45.4206&lon=11.0624&zoom=12&layers=M

and OSM is showing another town which is many many chilometers away.

http://www.openstreetmap.org/?lat=41.121&lon=14.848&zoom=11&layers=M

How can I fix this? Is something about srs/crs/reprojection?

the 3003 layers are an imagemosaic of tiff and ecw coming from geoserver.

this is the code for the map

var options = {
          projection: "EPSG:3003",
          units: 'm'
        };
        map = new OpenLayers.Map('map', options);

this is the code for one 3003 layer

vr3003tif = new OpenLayers.Layer.WMS(
        "CTR", "http://localhost:8080/geoserver/wms";,
        {
          layers: 'veneto:vr3003tif',
          srs: 'EPSG:3003',
          height: '439',
          width: '512',
        },
        {singleTile: true, ratio: 1}
      );

and I'm adding OSM with

var osm = new OpenLayers.Layer.OSM();

thank you in advance

alberto
_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users

Reply via email to