BaseLayerPickerViewModel

new BaseLayerPickerViewModel()

The view model for BaseLayerPicker.
Name Type Default Description
options.globe Globe The Globe to use.
options.imageryProviderViewModels ProviderViewModel[] [] optional The array of ProviderViewModel instances to use for imagery.
options.selectedImageryProviderViewModel ProviderViewModel optional The view model for the current base imagery layer, if not supplied the first available imagery layer is used.
options.terrainProviderViewModels ProviderViewModel[] [] optional The array of ProviderViewModel instances to use for terrain.
options.selectedTerrainProviderViewModel ProviderViewModel optional The view model for the current base terrain layer, if not supplied the first available terrain layer is used.
Throws:

Members

buttonImageUrl :String

Gets the button background image. This property is observable.

buttonTooltip :String

Gets the button tooltip. This property is observable.
Gets or sets whether the imagery selection drop-down is currently visible.
Default Value: false

globe :Globe

Gets the globe.

imageryProviderViewModels :ProviderViewModel[]

Gets or sets an array of ProviderViewModel instances available for imagery selection. This property is observable.

selectedImagery :ProviderViewModel

Gets or sets the currently selected imagery. This property is observable.
Default Value: undefined

selectedTerrain :ProviderViewModel

Gets or sets the currently selected terrain. This property is observable.
Default Value: undefined

terrainProviderViewModels :ProviderViewModel[]

Gets or sets an array of ProviderViewModel instances available for terrain selection. This property is observable.

toggleDropDown :Command

Gets the command to toggle the visibility of the drop down.