加载正射影像方式
//加载正射影像图层
InitPoliDom20200415: function() {
ZhiYunGisProperty.PoliDom20200415 = [];
let latLonBounds ={"east":119.795585497319,"north":35.7152527358383,"south":35.6769434941704,"west":119.745473192954};
let rectangle = new NF.Rectangle(NF.Math.toRadians(latLonBounds.west), NF.Math.toRadians(latLonBounds.south),
NF.Math.toRadians(latLonBounds.east), NF.Math.toRadians(latLonBounds.north));
let plImageLayer = new NF.UrlTemplateImageryProvider({
url: ImageUrl + 'polizs2/{z}/{x}/{y}.png',
tilingScheme: new NF.WebMercatorTilingScheme(),
rectangle: rectangle,
minimumLevel: 0,
maximumLevel: 22,
});
let polizs2 = ZhiYunGisProperty.ZhiYunViewer.imageryLayers.addImageryProvider(plImageLayer);
polizs2.show = false;
ZhiYunGisProperty.PoliDom20200415.push(polizs2);
},
// 显示或隐藏正射影像图层
ZhiYunGisProperty.PoliDom20200415.forEach(item => {
item.show = this.isShow;
})