up
This commit is contained in:
@ -758,21 +758,21 @@ function addBoundaryHandle(data, name, color) {
|
||||
// 添加村
|
||||
// CQL_FILTER:筛选的语句
|
||||
// customName地图服务自定义属性名
|
||||
function addvillage(CQL_FILTER, customName) {
|
||||
let map2 = new Cesium.WebMapServiceImageryProvider({
|
||||
url: `http://36.134.44.75:9080/geoserver/shuzisannong/wms`,
|
||||
layers: 'shuzisannong:huangdaoqu_village', //图层名
|
||||
parameters: {
|
||||
service: 'WMS',
|
||||
format: 'image/png',
|
||||
transparent: true, //是否透明
|
||||
// CQL_FILTER: `XZDM=${value.value}`,
|
||||
CQL_FILTER: CQL_FILTER,
|
||||
},
|
||||
});
|
||||
map2.customName = customName;
|
||||
viewer.imageryLayers.addImageryProvider(map2);
|
||||
}
|
||||
// function addvillage(CQL_FILTER, customName) {
|
||||
// let map2 = new Cesium.WebMapServiceImageryProvider({
|
||||
// url: `http://36.134.44.75:9080/geoserver/shuzisannong/wms`,
|
||||
// layers: 'shuzisannong:huangdaoqu_village', //图层名
|
||||
// parameters: {
|
||||
// service: 'WMS',
|
||||
// format: 'image/png',
|
||||
// transparent: true, //是否透明
|
||||
// // CQL_FILTER: `XZDM=${value.value}`,
|
||||
// CQL_FILTER: CQL_FILTER,
|
||||
// },
|
||||
// });
|
||||
// map2.customName = customName;
|
||||
// viewer.imageryLayers.addImageryProvider(map2);
|
||||
// }
|
||||
// 移除wms
|
||||
// nameArry :属性名数组(customName)
|
||||
// isMohu :是否模糊查询
|
||||
|
Reference in New Issue
Block a user