new BaseLayerPickerViewModel(options)
The view model for
BaseLayerPicker
.
Parameters:
Name | Type | Description | ||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object | Object with the following properties:
Properties
|
Throws:
-
-
imageryProviderViewModels must be an array.
- Type
- DeveloperError
-
-
-
terrainProviderViewModels must be an array.
- Type
- DeveloperError
-
Members
buttonImageUrl :String
Gets the button background image. This property is observable.
Type:
- String
buttonTooltip :String
Gets the button tooltip. This property is observable.
Type:
- String
dropDownVisible :Boolean
Gets or sets whether the imagery selection drop-down is currently visible.
Type:
- Boolean
- Default Value:
- false
- Source:
globe :Globe
Gets the globe.
Type:
imageryProviderViewModels :Array.<ProviderViewModel>
Gets or sets an array of ProviderViewModel instances available for imagery selection.
This property is observable.
Type:
- Array.<ProviderViewModel>
selectedImagery :ProviderViewModel
Gets or sets the currently selected imagery. This property is observable.
Type:
- Default Value:
- undefined
- Source:
selectedTerrain :ProviderViewModel
Gets or sets the currently selected terrain. This property is observable.
Type:
- Default Value:
- undefined
- Source:
terrainProviderViewModels :Array.<ProviderViewModel>
Gets or sets an array of ProviderViewModel instances available for terrain selection.
This property is observable.
Type:
- Array.<ProviderViewModel>
toggleDropDown :Command
Gets the command to toggle the visibility of the drop down.