I'm trying to test simple web map based on PostGIS/Geoserver/OpenLayers stack on Windows Server 2008.
When I load my WMS layer by:
var gwctest = new OpenLayers.Layer.WMS(
"gwctest",
"http://localhost:1979/geoserver/wms",
{
'layers': 'Index2000:index_vect_s100',
'format': 'image/png',
'srs': 'EPSG:3857',
'units': 'm',
'transparent': true
},
{'opacity': 0.8, 'isBaseLayer': false, 'visibility': false}
);
Everything seems to be fine.
However, when I try to add WMS layer to my map using GeoWebCache, replacing
"http://localhost:1979/geoserver/wms"
with:
"http://localhost:1979/geoserver/gwc/service/wms"
My data suddenly move from correct position:
Any ideas on what may be the cause?
EDIT: some additional info on GWC mailing list post.