|
@@ -2173,7 +2173,7 @@ export default { |
|
|
|
|
|
|
|
|
var wmsSource = new ol.source.TileWMS({ |
|
|
var wmsSource = new ol.source.TileWMS({ |
|
|
//url: 'http://192.168.31.150:8888/geoserver/mywork_mysql/wms', |
|
|
//url: 'http://192.168.31.150:8888/geoserver/mywork_mysql/wms', |
|
|
url: "http://116.255.223.226:8080/geoserver/nsgk_hc/wms", |
|
|
|
|
|
|
|
|
url: "http://218.59.175.44:8080/geoserver/nsgk_hc/wms", |
|
|
//url: 'http://localhost:8888/geoserver/mywork_mysql/wms', |
|
|
//url: 'http://localhost:8888/geoserver/mywork_mysql/wms', |
|
|
params: { |
|
|
params: { |
|
|
LAYERS: "nsgk_hc:nsgk_hc_all", |
|
|
LAYERS: "nsgk_hc:nsgk_hc_all", |
|
@@ -2202,7 +2202,7 @@ export default { |
|
|
title: "add Layer", |
|
|
title: "add Layer", |
|
|
source: new ol.source.Vector({ |
|
|
source: new ol.source.Vector({ |
|
|
projection: projection, |
|
|
projection: projection, |
|
|
// url: "http://116.255.223.226:8081/nsgk_test/profile/geojson/huancui.json", //GeoJSON的文件路径,用户可以根据需求而改变 |
|
|
|
|
|
|
|
|
// url: "http://218.59.175.44:8081/nsgk_test/profile/geojson/huancui.json", //GeoJSON的文件路径,用户可以根据需求而改变 |
|
|
// format: new ol.format.GeoJSON(), |
|
|
// format: new ol.format.GeoJSON(), |
|
|
features: new ol.format.GeoJSON().readFeatures(data), |
|
|
features: new ol.format.GeoJSON().readFeatures(data), |
|
|
}), |
|
|
}), |
|
@@ -2244,7 +2244,7 @@ export default { |
|
|
// title: "add Layer", |
|
|
// title: "add Layer", |
|
|
// source: new ol.source.Vector({ |
|
|
// source: new ol.source.Vector({ |
|
|
// projection: projection, |
|
|
// projection: projection, |
|
|
// url: "http://116.255.223.226:8081/nsgk_test/profile/geojson/huancui.json", //GeoJSON的文件路径,用户可以根据需求而改变 |
|
|
|
|
|
|
|
|
// url: "http://218.59.175.44:8081/nsgk_test/profile/geojson/huancui.json", //GeoJSON的文件路径,用户可以根据需求而改变 |
|
|
// format: new ol.format.GeoJSON(), |
|
|
// format: new ol.format.GeoJSON(), |
|
|
// }), |
|
|
// }), |
|
|
// style: new ol.style.Style({ |
|
|
// style: new ol.style.Style({ |
|
@@ -2264,7 +2264,7 @@ export default { |
|
|
// title: "add huancui_zhen", |
|
|
// title: "add huancui_zhen", |
|
|
// source: new ol.source.Vector({ |
|
|
// source: new ol.source.Vector({ |
|
|
// projection: projection, |
|
|
// projection: projection, |
|
|
// url: "http://116.255.223.226:8081/nsgk_test/profile/geojson/huancui_zhen.json", //GeoJSON的文件路径,用户可以根据需求而改变 |
|
|
|
|
|
|
|
|
// url: "http://218.59.175.44:8081/nsgk_test/profile/geojson/huancui_zhen.json", //GeoJSON的文件路径,用户可以根据需求而改变 |
|
|
// format: new ol.format.GeoJSON(), |
|
|
// format: new ol.format.GeoJSON(), |
|
|
// }), |
|
|
// }), |
|
|
// style: new ol.style.Style({ |
|
|
// style: new ol.style.Style({ |
|
@@ -2701,7 +2701,7 @@ export default { |
|
|
nongZt[i] = new ol.layer.Tile({ |
|
|
nongZt[i] = new ol.layer.Tile({ |
|
|
source: new ol.source.TileWMS({ |
|
|
source: new ol.source.TileWMS({ |
|
|
//url: 'http://192.168.31.150:8888/geoserver/mywork_mysql/wms', |
|
|
//url: 'http://192.168.31.150:8888/geoserver/mywork_mysql/wms', |
|
|
url: "http://116.255.223.226:8080/geoserver/nsgk_hc/wms", |
|
|
|
|
|
|
|
|
url: "http://218.59.175.44:8080/geoserver/nsgk_hc/wms", |
|
|
//url: 'http://localhost:8888/geoserver/mywork_mysql/wms', |
|
|
//url: 'http://localhost:8888/geoserver/mywork_mysql/wms', |
|
|
//url: 'http://localhost:8888/geoserver/new_shp/wms', |
|
|
//url: 'http://localhost:8888/geoserver/new_shp/wms', |
|
|
params: { |
|
|
params: { |
|
@@ -2728,7 +2728,7 @@ export default { |
|
|
outputFormat: "application/json", |
|
|
outputFormat: "application/json", |
|
|
//filter: ol.format.filter.equalTo(t,e,r)//前者是属性名,后者是对应值 |
|
|
//filter: ol.format.filter.equalTo(t,e,r)//前者是属性名,后者是对应值 |
|
|
}; |
|
|
}; |
|
|
let url_dw = "http://116.255.223.226:8080/geoserver/nsgk_hc/wfs"; //wfsurl; |
|
|
|
|
|
|
|
|
let url_dw = "http://218.59.175.44:8080/geoserver/nsgk_hc/wfs"; //wfsurl; |
|
|
url_dw = url_dw + "?"; |
|
|
url_dw = url_dw + "?"; |
|
|
for (let key in param_dw) { |
|
|
for (let key in param_dw) { |
|
|
url_dw = url_dw + key + "=" + param_dw[key] + "&"; |
|
|
url_dw = url_dw + key + "=" + param_dw[key] + "&"; |
|
@@ -2860,7 +2860,7 @@ export default { |
|
|
delete_map[i] = new ol.layer.Tile({ |
|
|
delete_map[i] = new ol.layer.Tile({ |
|
|
source: new ol.source.TileWMS({ |
|
|
source: new ol.source.TileWMS({ |
|
|
//url: 'http://192.168.31.150:8888/geoserver/mywork_mysql/wms', |
|
|
//url: 'http://192.168.31.150:8888/geoserver/mywork_mysql/wms', |
|
|
url: "http://116.255.223.226:8080/geoserver/nsgk_hc/wms", |
|
|
|
|
|
|
|
|
url: "http://218.59.175.44:8080/geoserver/nsgk_hc/wms", |
|
|
//url: 'http://localhost:8888/geoserver/mywork_mysql/wms', |
|
|
//url: 'http://localhost:8888/geoserver/mywork_mysql/wms', |
|
|
//url: 'http://localhost:8888/geoserver/new_shp/wms', |
|
|
//url: 'http://localhost:8888/geoserver/new_shp/wms', |
|
|
params: { |
|
|
params: { |
|
@@ -2888,7 +2888,7 @@ export default { |
|
|
outputFormat: "application/json", |
|
|
outputFormat: "application/json", |
|
|
//filter: ol.format.filter.equalTo(t,e,r)//前者是属性名,后者是对应值 |
|
|
//filter: ol.format.filter.equalTo(t,e,r)//前者是属性名,后者是对应值 |
|
|
}; |
|
|
}; |
|
|
let url_dw = "http://116.255.223.226:8080/geoserver/nsgk_hc/wfs"; //wfsurl; |
|
|
|
|
|
|
|
|
let url_dw = "http://218.59.175.44:8080/geoserver/nsgk_hc/wfs"; //wfsurl; |
|
|
url_dw = url_dw + "?"; |
|
|
url_dw = url_dw + "?"; |
|
|
for (let key in param_dw) { |
|
|
for (let key in param_dw) { |
|
|
url_dw = url_dw + key + "=" + param_dw[key] + "&"; |
|
|
url_dw = url_dw + key + "=" + param_dw[key] + "&"; |
|
@@ -3122,7 +3122,7 @@ export default { |
|
|
outputFormat: "application/json", |
|
|
outputFormat: "application/json", |
|
|
//filter: ol.format.filter.equalTo(t,e,r)//前者是属性名,后者是对应值 |
|
|
//filter: ol.format.filter.equalTo(t,e,r)//前者是属性名,后者是对应值 |
|
|
}; |
|
|
}; |
|
|
let url_dw = "http://116.255.223.226:8080/geoserver/nsgk_hc/wfs"; //wfsurl; |
|
|
|
|
|
|
|
|
let url_dw = "http://218.59.175.44:8080/geoserver/nsgk_hc/wfs"; //wfsurl; |
|
|
url_dw = url_dw + "?"; |
|
|
url_dw = url_dw + "?"; |
|
|
for (let key in param_dw) { |
|
|
for (let key in param_dw) { |
|
|
url_dw = url_dw + key + "=" + param_dw[key] + "&"; |
|
|
url_dw = url_dw + key + "=" + param_dw[key] + "&"; |
|
@@ -3289,7 +3289,7 @@ export default { |
|
|
outputFormat: "application/json", |
|
|
outputFormat: "application/json", |
|
|
//filter: ol.format.filter.equalTo(t,e,r)//前者是属性名,后者是对应值 |
|
|
//filter: ol.format.filter.equalTo(t,e,r)//前者是属性名,后者是对应值 |
|
|
}; |
|
|
}; |
|
|
let url_dw = "http://116.255.223.226:8080/geoserver/nsgk_hc/wfs"; //wfsurl; |
|
|
|
|
|
|
|
|
let url_dw = "http://218.59.175.44:8080/geoserver/nsgk_hc/wfs"; //wfsurl; |
|
|
url_dw = url_dw + "?"; |
|
|
url_dw = url_dw + "?"; |
|
|
for (let key in param_dw) { |
|
|
for (let key in param_dw) { |
|
|
url_dw = url_dw + key + "=" + param_dw[key] + "&"; |
|
|
url_dw = url_dw + key + "=" + param_dw[key] + "&"; |
|
@@ -3497,7 +3497,7 @@ export default { |
|
|
// location.host + |
|
|
// location.host + |
|
|
// request.defaults.baseURL + |
|
|
// request.defaults.baseURL + |
|
|
res.fileName; |
|
|
res.fileName; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
console.log("历史" + this.houseInfoList.frontHouse); |
|
|
console.log("历史" + this.houseInfoList.frontHouse); |
|
|
} else { |
|
|
} else { |
|
|
return "图片上传失败"; |
|
|
return "图片上传失败"; |
|
|