GisEyeFlowingImageMaterialProperty

new GisEye.GisEyeFlowingImageMaterialProperty(options)

流动图片纹理

Name Type Description
options object

入参对象

Name Type Default Description
image String optional

图片

rate object {x: 1,y: 1} optional

速率(x、y代表方向)

repeatNum object {x: 1,y: 1} optional

重复数量(x、y代表方向)

alpha Number 1 optional

透明度

isTranslucent boolean true optional

是否透明

Example:
let lon = 104;
  let lat = 30;
  viewer.entities.add({
    polyline: {
      positions: Cesium.Cartesian3.fromDegreesArrayHeights([
        lon - 0.2+1, lat, 0.0,
        lon + 0.2+1, lat, 0.0,
      ]),
      width: 20.0,
      material: new GisEye.GisEyeFlowingImageMaterialProperty({
        image: './image/jianbian.png',
        rate: {
          x:1,
          y:0
        },
        repeatNum: {
          x:5,
          y:1
        },
        alpha:1,
        isTranslucent:true
      })
    }
  });
  viewer.entities.add({
    polygon: {
      hierarchy: Cesium.Cartesian3.fromDegreesArrayHeights([
      lon - 0.2 +1, lat - 0.1, 0,
      lon + 0.2+1, lat - 0.1, 0,
      lon + 0.2+1, lat - 0.5, 0,
      lon - 0.2+1, lat - 0.5, 0,
      ]),
      material: new GisEye.GisEyeFlowingImageMaterialProperty({
        image: './image/jianbian.png',
        rate: {
          x:1,
          y:0
        },
        repeatNum: {
          x:5,
          y:1
        },
        alpha:1,
        isTranslucent:true
      })
    }
  });
  viewer.entities.add({
    wall: {
      positions: Cesium.Cartesian3.fromDegreesArrayHeights([
        lon - 0.2+1.5, lat - 0.1, 10000,
        lon + 0.2+1.5, lat - 0.1, 10000,
        lon + 0.2+1.5, lat - 0.5, 10000,
        lon - 0.2+1.5, lat - 0.5, 10000,
        lon - 0.2+1.5, lat - 0.1, 10000,
      ]),
      material: new GisEye.GisEyeFlowingImageMaterialProperty({
        image: './image/jianbian.png',
        rate: {
          x:1,
          y:0
        },
        repeatNum: {
          x:5,
          y:1
        },
        alpha:1,
        isTranslucent:true
      })
    }
  });