首页 / 浏览问题 / 云GIS / 问题详情
idesktop加载dem缓存,发布服务,背景是黑色的
29EXP 2023年04月21日

dem生成的缓存,加载到idesktop工作空间已经没有黑边了,但是发布的服务还是有黑边

1个回答

您好,看您的截图,黑色的地方应该是影像的而是不是地形的,

建议您将影像黑边部分的值,在影像图层的图层属性中,设为无值透明再切缓存。

如果已经切好了的影像缓存实在不想重新切,也可以在前端设置透明色:

ImageryLayer.transparentBackColor

ImageryLayer.transparentBackColorTolerance

http://support.supermap.com.cn:8090/webgl/docs/Documentation/ImageryLayer.html

其中ImageryLayer通过Scene.readonlyimageryLayers.get()方法获取

http://support.supermap.com.cn:8090/webgl/docs/Documentation/ImageryLayerCollection.html

http://support.supermap.com.cn:8090/webgl/docs/Documentation/Scene.html

希望可以帮助到您。

9,598EXP 2023年04月23日
...