openlayers读取arcgis server发布服务
var parr = {
REQUEST: "GetFeature",
featureNS: "",
typename: "PKH_XIAN",
SERVICE: "WFS",
version: "1.1.0",
srsName: "EPSG:4326",
maxFeatures: 1000,
geometryName:"Shape"
};
OpenLayers.loadURL("http://192.168.23.19/arcgis/services/FP02_jinzhunfupin/GZSJZFPPKRKFBT/MapServer/WFSServer", parr, this, succ, faill);
function succ(response) {
var x = response.responseText;
console.log(x);
}
function faill(response) {
alert("无数据");
}
引入js包,有2个,一个为openlayers, 一个为depress.js
转载自:https://blog.csdn.net/wt346326775/article/details/51118980