entities绘制出来的线条上面给添加上图片后如何禁止他缩放呢
viewer.entities.add({
crossguid: crossguid,
polyline: { // 平面
positions: Cesium.Cartesian3.fromDegreesArrayHeights(nodePositionArr),
width:85,
material: new Cesium.ImageMaterialProperty({
image: require("../../image/corssImage/铁路.jpg"),
repeat: new Cesium.Cartesian2(8, 1)
}),
show: true,
clampToGround: true,
distanceDisplayCondition: new Cesium.DistanceDisplayCondition(0, 5000),
},
});
效果图:
缩放后:
缩放前: