Name | Type | Description |
---|---|---|
data |
* | 点位数据 |
options |
IParserCfg | 可选的 数据配置 |
Example:
new TS.PolylineLayer().setData(renderData, {
type: 'json',
coordinates: 'positions',
height: 'height',
filter: {
propertyName: 'color',
values: colors.map(Item => {
return {
value: Item,
material: Item
}
})
}
})
.addTo(viewer)
.readyPromise.then((layer) => {
viewer.isLoading = false;
layer.flyTo();
});
Extends
Members
该图层是否已经准备好
- Inherited From:
该图层准备好的回调
- Inherited From:
Methods
deprecated add(overlay) → LayerBase
此为大数据图层,不使用这个来设置
Name | Type | Description |
---|---|---|
overlay |
Returns:
- Inherited From:
Deprecated: true
deprecated remove(overlay) → LayerBase
Name | Type | Description |
---|---|---|
overlay |
Returns:
- Inherited From:
Deprecated: true
更新数据
Name | Type | Description |
---|---|---|
data |
* | |
options |
IParserCfg | 可选的 |
Example:
new TS.PolylineLayer().setData(renderData, {
type: 'json',
coordinates: 'positions',
height: 'height',
filter: {
propertyName: 'color',
values: colors.map(Item => {
return {
value: Item,
material: Item
}
})
}
})
.addTo(viewer)
.readyPromise.then((layer) => {
viewer.isLoading = false;
layer.flyTo();
});