MarkMaterialImage

MarkMaterialImage

标绘图像材质。

Constructor

new MarkMaterialImage(optionsopt)

Author:
  • zpc
Example
// 例1,创建MarkMaterialImage实例
var circleAirSpace = new MarkAirSpaceArc({
     name : "弧形空域",
     radius : 500000,
     height : 200000,
     material : new MarkMaterialImage({
         image : "./data/pictures/earthclouds1k.jpg",
         transparent : true
     }),
     position : new GeoPosition(-112.210693, 36.0994841)
 })
 // 例2,直接使用URL
 var circleAirSpace = new MarkAirSpaceArc({
     name : "弧形空域",
     radius : 500000,
     height : 200000,
     material : "./data/pictures/earthclouds1k.jpg",
     position : new GeoPosition(-112.210693, 36.0994841)
 })
Parameters:
Name Type Attributes Description
options Object <optional>
此对象拥有以下属性:
Properties
Name Type Attributes Default Description
image String | Cesium.Resource | HTMLCanvasElement | HTMLVideoElement <optional>
指定图像,URL,画布或视频。
repeat Cesium.Cartesian2 <optional>
new Cesium.Cartesian2(1.0, 1.0) 用于指定图像在每个方向上重复的次数。
color Cesium.Color <optional>
Cesium.Color.WHITE 应用到图片上的颜色。
transparent Boolean <optional>
false 当图片有透明通道时,将其指定为true。

Extends

Members

color :Cesium.Color

Default Value:
  • Cesium.Color.WHITE
设置/获取应用到图片上的颜色。
Type:
  • Cesium.Color

image :String|Cesium.Resource|HTMLCanvasElement|HTMLVideoElement

设置/获取指定的图像,URL,画布或视频。
Type:
  • String | Cesium.Resource | HTMLCanvasElement | HTMLVideoElement

(readonly) materialProperty :Cesium.MaterialProperty

Overrides:
获取Cesium原生材质属性。
Type:
  • Cesium.MaterialProperty

repeat :Cesium.Cartesian2

Default Value:
  • new Cesium.Cartesian2(1.0, 1.0)
设置/获取用于指定图像在每个方向上重复的次数。
Type:
  • Cesium.Cartesian2

transparent :Boolean

Default Value:
  • false
设置/获取图片是否含有透明通道。
Type:
  • Boolean