首页 / 浏览问题 / 三维GIS / 问题详情
影像去除多余的白边和黑边
38EXP 2023年11月27日
let filterLayer = window.viewer.imageryLayers.addImageryProvider(new Cesium.SuperMapImageryProvider({
						url:this.$mapUrl +  '/iserver/services/map-DaHaiTuoXiang/rest/maps/大海陀乡@dx',
					}));
					//filterLayer.transperantBackColor = Cesium.Color.fromCssColorString('#FFFFFF');
					//filterLayer.transperantBackColorTolerance = Number(0.0);
          filterLayer.transperantBackColor= Cesium.Color.fromCssColorString('#ffffff');
          filterLayer.transperantBackColorTolerance = Number(0.1); //去黑边

我这是有白边 这样没有效果是为什么

1个回答

您好,代码拼写错了transparentBackColor, transparentBackColorTolerance

525EXP 2023年11月27日
...