Using a Google base layer, projecting a WMS layer from a Geoserver install
as a semi-transparent overlay. WMS layer sourced from our local Geoserver
install.
The Google layer is native ESPG:900913/ESPG:4326 projection
The WMS layer is natively ESPG:27700
The WMS layer does get re-projected, but at high zoom there is a noticeable
disparity of a couple of hundred meters between the two layers.
I realise it's a horridly ambiguous question, but does anyone know why the
two layers are so far out of kilter, or even some suggestions of where to
start looking would help.
The OL code is below:
map = new OpenLayers.Map('regionmap');
gmap = new OpenLayers.Layer.Google("Google Streets");
drawingLayer = new OpenLayers.Layer.Vector("Drawing Layer", {});
var gridLayer10 = new OpenLayers.Layer.WMS(
"10km Grids", "http://blxdev.bto.org:8080/geoserver/test/wms",
{
LAYERS: 'test:BI010kmclip2land',
STYLES: '',
format: 'image/png8',
transparent: true,
tiled: true,
tilesOrigin : map.maxExtent.left + ',' + map.maxExtent.bottom
},
{
buffer: 0,
displayOutsideMaxExtent: true,
projection: "EPSG:4236",
maxExtent: map.maxExtent,
maxResolution: 39135.758475,
units: "m",
isBaseLayer: false,
transparent: true,
opacity: 0.3,
visibility: false
}
);
map.addLayers([gmap, gridLayer10, drawingLayer]);
I can send screenshots to individuals if required.
Mark Hammond
------------------------------------------------------------------------------
AppSumo Presents a FREE Video for the SourceForge Community by Eric
Ries, the creator of the Lean Startup Methodology on "Lean Startup
Secrets Revealed." This video shows you how to validate your ideas,
optimize your ideas and identify your business strategy.
http://p.sf.net/sfu/appsumosfdev2dev
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users