I have a GetFeature control that is constructed with a protocol created from an
existing WMS layer which is working fine. However where getfeature requests are
being sent the feature namespace is not sent, i.e. 'links' is sent instead of
'myNS:links'. This has been working I think because of my default namespace in
geoserver, but I now want to use another namespace that is not the default, and
I can see the default namespace in the response (which is not correct). I have
tried setting featureNS parameters to both these constructors but it still
doesn't get passed through.
Does anyone know how to do this?
var links = new OpenLayers.Layer.WMS(
"Links", "/geoserver/wms",
{
layers: 'myNS:links',
styles: '',
srs: 'EPSG:4326',
format: 'image/png',
tiled: 'true',
tilesOrigin : map.maxExtent.left + ',' +
map.maxExtent.bottom,
transparent: true
},
{
visibility: false,
buffer: 0,
'opacity': 0.75,
'isBaseLayer': false,
'wrapDateLine': true
}
);
var getFeatureControl = new OpenLayers.Control.GetFeature({
// The request is sending coordinates in EPSG:900913
protocol: OpenLayers.Protocol.WFS.fromWMSLayer(links, {srsName:
"EPSG:900913"}),
box: true,
hover: true,
multipleKey: "shiftKey",
toggleKey: "ctrlKey"
});
thanks,
charles
_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users