Appearance
KBE3D / KBCore / Cesium / ProviderViewModel
类: ProviderViewModel
A view model that represents each item in the BaseLayerPicker.
参数
The object containing all parameters.
参数
The name of the layer.
参数
The tooltip to show when the item is moused over.
参数
An icon representing the layer.
参数
A category for the layer.
参数
A function or Command that creates one or more providers which will be added to the globe when this item is selected.
属性
name
name:
string
Gets the display name. This property is observable.
tooltip
tooltip:
string
Gets the tooltip. This property is observable.
iconUrl
iconUrl:
string
Gets the icon. This property is observable.
creationCommand
readonlycreationCommand:Command
Gets the Command that creates one or more providers which will be added to the globe when this item is selected.
category
readonlycategory:string
Gets the category
构造函数
构造函数
new ProviderViewModel(
options: {name:string;tooltip:string;iconUrl:string;creationFunction:Command|CreationFunction;category?:string; }):ProviderViewModel
参数
options
name
string
tooltip
string
iconUrl
string
creationFunction
category?
string
返回
ProviderViewModel
