new BaseLayerPickerViewModel()
View model of BaseLayerPicker.
| Name | Type | Default | Description |
|---|---|---|---|
options.globe |
Globe |
The Globe used. |
|
options.imageryProviderViewModels |
Array.<ProviderViewModel> | [] |
optional
An array of VNet instances used for images. |
options.selectedImageryProviderViewModel |
ProviderViewModel |
optional
If the view model of the current basic image layer is not provided, the first available image layer will be used. |
|
options.terrainProviderViewModels |
Array.<ProviderViewModel> | [] |
optional
An array of LayoutVNet instances used for terrain. |
options.selectedTerrainProviderViewModel |
ProviderViewModel |
optional
If the view model of the current basic terrain layer is not provided, the first available terrain layer will be used. |
Throws:
-
-
ImageryLayoutModels must be an array.
- Type
- DeveloperError
-
-
-
TerraPeopleViewModels must be an array.
- Type
- DeveloperError
-
Members
-
buttonImageUrlString
-
Obtain the background image of the button. This attribute is observable.
-
buttonTooltipString
-
Get button tooltips. This attribute is observable.
-
dropDownVisibleBoolean
-
Retrieve or set whether the dropdown menu for image selection is currently visible.
- Default Value: false
globeGlobe
Get the globe.
imageryProviderViewModelsArray.<ProviderViewModel>
Get or set an array of LayoutVNet instances that can be used for image selection. This attribute is observable.
selectedImageryProviderViewModel
Retrieve or set the currently selected image. This attribute is observable.
- Default Value: undefined
selectedTerrainProviderViewModel
Get or set the currently selected terrain. This attribute is observable.
- Default Value: undefined
terrainProviderViewModelsArray.<ProviderViewModel>
Get or set an array of LayoutVNet instances that can be used for terrain selection. This attribute is observable.
toggleDropDownCommand
Get the command to switch the visibility of the dropdown list.