Appearance
Class: DynamicMaterial
动态材质,可自定义传入图标渲染对应的动态效果,用在 GroundPolylinePrimitive Primitive 等对象中
Table of contents
Constructors
Constructors
constructor
• new DynamicMaterial(options): DynamicMaterial
动态材质,可自定义传入图标渲染对应的动态效果, 用在 GroundPolylinePrimitive Primitive 等对象中
| Name | Type | Default | Description |
|---|---|---|---|
image | String | 图片地址 | |
color | Color | Color.WHITE | optional 颜色 |
repeat | Cartesian2 |
new Cesium.Cartesian2(1, 1)| optional 纹理图片重复平铺 | | axisY | Boolean | false | optional 是否沿Y轴 | | speed | Number | 1 | optional 运动速度 |
Parameters
| Name | Type |
|---|---|
options | DynamicMaterialOptions |
Returns
Example
js
const dynamicMaterial = new joDVF.DynamicMaterial({
image: "img/arrow.png",
speed: 5,
repeat: new Cesium.Cartesian2(20, 1),
color: Cesium.Color.GREEN
});Defined in
src/materials/DynamicMaterial.ts:65

