Yes, i've made it. But it doenst work. My own Image layer appears streched.
If i don't transform my bounds, the image layer appears correctly, but i
have to click on the world icon to see it. Whats my fault? If a use a WMS
layer and my own image layers there a no problems. Have you an idea my
friend?
Thanks a lot for any advise.
the code with the EPSG projection in map object:
map = new OpenLayers.Map('map',{projection: "EPSG:900913"});
var layerMap = new OpenLayers.Layer.OSM.Mapnik("Out", {numZoomLevels:3,
projection: "EPSG:900913"});
map.addLayer(layerMap);
// own map
for(i=0;i<maps.length;i++){
//alert(maps[i]['zoom']);
map.addLayer(
ownMap = new OpenLayers.Layer.Image(
maps[i]['name'],
maps[i]['image'],
new OpenLayers.Bounds(-180, -75.759, 180,
75.759).transform(new
OpenLayers.Projection("EPSG:4326"), new
OpenLayers.Projection("EPSG:900913")),
new OpenLayers.Size(580, 288),
//new OpenLayers.Bounds(-180, -88.759, 180,
88.759).transform(new OpenLayers.Projection("EPSG:4326"),
map.getProjectionObject()),
{numZoomLevels:3, projection: "EPSG:900913"}
)
);
}
map.zoomToMaxExtent();
--
View this message in context:
http://osgeo-org.1803224.n2.nabble.com/Image-layer-problem-tp5622104p5630198.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