Appearance
KBE3D / KBCore / Cesium / BaseLayerPickerViewModel
类: BaseLayerPickerViewModel
The view model for BaseLayerPicker.
参数
Object with the following properties:
参数
The Globe to use.
参数
The array of ProviderViewModel instances to use for imagery.
参数
The view model for the current base imagery layer, if not supplied the first available imagery layer is used.
参数
The array of ProviderViewModel instances to use for terrain.
参数
The view model for the current base terrain layer, if not supplied the first available terrain layer is used.
属性
imageryProviderViewModels
imageryProviderViewModels:
ProviderViewModel[]
Gets or sets an array of ProviderViewModel instances available for imagery selection. This property is observable.
terrainProviderViewModels
terrainProviderViewModels:
ProviderViewModel[]
Gets or sets an array of ProviderViewModel instances available for terrain selection. This property is observable.
dropDownVisible
dropDownVisible:
boolean
Gets or sets whether the imagery selection drop-down is currently visible.
buttonTooltip
buttonTooltip:
string
Gets the button tooltip. This property is observable.
buttonImageUrl
buttonImageUrl:
string
Gets the button background image. This property is observable.
selectedImagery
selectedImagery:
ProviderViewModel
Gets or sets the currently selected imagery. This property is observable.
selectedTerrain
selectedTerrain:
ProviderViewModel
Gets or sets the currently selected terrain. This property is observable.
toggleDropDown
toggleDropDown:
Command
Gets the command to toggle the visibility of the drop down.
globe
globe:
Globe
Gets the globe.
构造函数
构造函数
new BaseLayerPickerViewModel(
options: {globe:Globe;imageryProviderViewModels?:ProviderViewModel[];selectedImageryProviderViewModel?:ProviderViewModel;terrainProviderViewModels?:ProviderViewModel[];selectedTerrainProviderViewModel?:ProviderViewModel; }):BaseLayerPickerViewModel
参数
options
globe
imageryProviderViewModels?
selectedImageryProviderViewModel?
terrainProviderViewModels?
selectedTerrainProviderViewModel?
返回
BaseLayerPickerViewModel
