Hi,
i need to reproject layers on the fly with a WMS server.
The map generation and reprojection works in principal, but the 'Raster' Layer
needs to have the OpenLayers.Bounds adjusted to the visible active BaseLayer.
The reprojection works ok when i adjust the Bounds manually.
How can this be done automatically ?
What i want/need is something like:
'maxExtent: new OpenLayers.Bounds(new GetActive_BaseLayer_Bounds())'
<snip>
// Overlay the image
var graphic = new OpenLayers.Layer.WMS( "PICTURE",
http_mapserver,
{map: mapfile,
layers: "MAP1,PIC,GRID",
transparent: false },
{
singleTile:true,
isBaseLayer: false,
// How to dynamically set OpenLayers.Bounds ???
maxExtent: new
OpenLayers.Bounds(xxmin,yymin,xxmax,yymax) ,
});
layers.push(graphic);
<snap>
Regards
Heiko
_______________________________________________
Users mailing list
[email protected]
http://openlayers.org/mailman/listinfo/users