Constructor
new ContourSurface(options)
Example
var contourSurfaceInstance = null;
Cesium.Resource.fetchJson({
url : "../SampleData/Json/ChinaBounds.json"
}).then(function(bounds) {
Cesium.Resource.fetchJson({
url : "../SampleData/Json/ChinaTemperature.json"
}).then(function(data) {
contourSurfaceInstance = new HczjEarth.ContourSurface({
viewer : mainControl.viewer,
data : data,
bounds : bounds,
alpha : 0.8,
})
}).otherwise(function(error) {
console.log(error);
console.log("加载全国温度数据失败!");
});
}).otherwise(function(error) {
console.log("加载全国边界数据失败!");
});
Parameters:
Name | Type | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object | 具有以下属性的对象:
Properties
|
Members
alpha :Number
获取或设置等值图透明度
Type:
- Number
data :Object
获取或设置等值面数据,设置数据时,要与旧数据具有同样的边界范围,否则会出错。
Type:
- Object
show :Boolean
- Default Value:
- true
获取或设置等值图是否显示。
Type:
- Boolean
Methods
destroy()
销毁该对象实例