[OpenLayers-Users] OpenLayers.Layer.WMS Reprojection Bounds
Heiko Schröter
schroete at iup.physik.uni-bremen.de
Fri Oct 16 02:56:00 EDT 2009
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
More information about the Users
mailing list