Код: Выделить всё
var get = OpenLayers.Request.GET({
url: "http://xxxxx.xx:80/geoserver/wms",
params: {
SERVICE: 'WMS',
VERSION: '1.1.1',
REQUEST: 'GetFeatureInfo',
LAYERS: 'x',
QUERY_LAYERS: 'x',
STYLES: '',
BBOX: map.getExtent().toBBOX(),
FEATURE_COUNT: 1000,
HEIGHT: map.size.h,
WIDTH: map.size.w,
FORMAT: 'image/png',
INFO_FORMAT: 'text/html',
SRS: 'EPSG:900913',
X: x,
Y: y
},
async: false,
callback: function(xmlHttp){
html=xmlHttp.responseText;
}
});