up
This commit is contained in:
@ -303,6 +303,9 @@ function initMap() {
|
||||
// // maximumLevel: 18
|
||||
}),
|
||||
});
|
||||
// 去除logo
|
||||
viewer.cesiumWidget.creditContainer.style.display = 'none';
|
||||
|
||||
//加载地图服务
|
||||
let map = new Cesium.WebMapServiceImageryProvider({
|
||||
url: `http://121.36.229.60:9080/geoserver/shuzisannong/wms`,
|
||||
@ -339,7 +342,7 @@ function initMap() {
|
||||
});
|
||||
// 拿取最后一个图层
|
||||
let provider = providerPoint._imageryProvider;
|
||||
console.log(provider);
|
||||
console.log(providerPoint);
|
||||
if (provider && provider.ready && provider._layers && providerPoint.show === true) {
|
||||
xy = provider.tilingScheme.positionToTileXY(cartographic, level, xy);
|
||||
let promise = provider.pickFeatures(
|
||||
@ -776,21 +779,17 @@ function areachar() {
|
||||
offset: 0,
|
||||
color: ' rgba(0, 208, 255, 0.1)',
|
||||
},
|
||||
{
|
||||
offset: 0.5,
|
||||
color: '#86eef1', // 左边的右边 颜色
|
||||
},
|
||||
{
|
||||
offset: 0.5,
|
||||
color: '#5ad6d9', // 右边的左边 颜色
|
||||
},
|
||||
|
||||
{
|
||||
offset: 1,
|
||||
color: 'rgba(0, 208, 255, 0.9) ',
|
||||
},
|
||||
],
|
||||
},
|
||||
borderWidth: 1,
|
||||
borderColor: 'black',
|
||||
},
|
||||
|
||||
label: {
|
||||
show: true,
|
||||
position: 'top',
|
||||
|
Reference in New Issue
Block a user