Thak you !
the params X and Y is necessary and must be specified ?
Can I use CQL_FILTER rather than x,y to get some features?
How should I set these params and CQL_FILTER?
var params = {
REQUEST: "GetFeatureInfo",
EXCEPTIONS: "application/vnd.ogc.se_xml",
BBOX: map.getExtent().toBBOX(),
INFO_FORMAT: 'application/vnd.ogc.gml',
QUERY_LAYERS: map.layers[0].params.LAYERS,
FEATURE_COUNT: 50,
Layers: 'CHN',
Styles: '',
Srs: 'EPSG:4326',
//X: e.xy.x,
//Y: e.xy.y,
format: format};
Request=OpenLayers.loadURL("http://159.226.13.203:8080/geoserver/wms?CQL_FILTER=NAME
LIKE ‘%上海%’", params, this, highlight, setHTMLx);
}
function highlight(response){
document.getElementById('nodelist').innerHTML =
response.responseText;
alert("sss");
var doc = response.responseXML;
if(!doc || !doc.documentElement) {
doc = response.responseText;
}
features = parseformat.read(doc);
highlightLayer.addFeatures(features);
};
_______________________________________________
Users mailing list
[email protected]
http://openlayers.org/mailman/listinfo/users