Hi All
I created a map by using a map file in OpenLayers and I am trying to query some
features but I couldn't make it. Also, do I have to set something in map file
to query a feature in Openlayers? I am using these codes but no result. Can
someone help me what is my mistake? Codes are below;
Thanks
map.events.register('click', map, function (e) {
OpenLayers.Util.getElement('nodeList').innerHTML =
"Loading... please wait...";
var url = wms.getFullRequestString({
REQUEST: "GetFeatureInfo",
EXCEPTIONS:
"application/vnd.ogc.se_xml",
BBOX: wms.map.getExtent().toBBOX(),
X: e.xy.x,
Y: e.xy.y,
INFO_FORMAT: 'text/html',
QUERY_LAYERS: wms.params.LAYERS,
WIDTH: wms.map.size.w,
HEIGHT: wms.map.size.h});
OpenLayers.loadURL(url, '', this, setHTML);
OpenLayers.Event.stop(e);
});
function setHTML(response) {
OpenLayers.Util.getElement('nodeList').innerHTML =
response.responseText;
}
_______________________________________________
mapserver-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapserver-users