地形等高线图层
Name | Type | Description | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object |
对象有下面这些属性:
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
global |
Object | 三维球对象(YouScene.earth) |
- Implements:
Examples:
var lyr = ys.layers.addContourLayer({
name: '等高线测试',
rectangle: {
west: 100,
east: 120,
north: 50,
south: 10
}
});
var lyr2 = ys.layers.addContourLayer({
name: '等高线测试2',
gradient: [{
color: { r: 0, g: 0, b: 0, a: 0.0 },
value: 150
},{
color: { r: 1, g: 0, b: 0, a: 0.5 },
value: 1000
},{
color: { r: 0, g: 0, b: 1, a: 0.3 },
value: 2000
}]
});
Demo:
Members
-
图层的整体透明度
-
Default Value:
1.0
Methods
-
添加图层
Name Type Description global
Object 三维球对象(YouScene.earth) pos
Number optional 图层添加的位置,默认添加到最后,即叠加到最上面 - Implements:
-
销毁
- Implements: