new BaseLayerPickerViewModel
The view model for BaseLayerPicker.
Parameters:
Name | Type | Argument | Default | Description |
---|---|---|---|---|
imageryLayers |
ImageryLayerCollection | The imagery layer collection to use. | ||
imageryProviderViewModels |
Array |
<optional> |
[] | The array of ImageryProviderViewModel instances to use. |
Throws:
-
DeveloperError : imageryLayers is required.
-
DeveloperError : imageryProviderViewModels must be an array.
Members
-
dropDownVisible :Boolean
-
Gets or sets whether the imagery selection drop-down is currently visible.
- Default Value:
- false
-
imageryLayers :ImageryLayerCollection
-
Gets the imagery layer collection.
-
imageryProviderViewModels :Array
-
Gets or sets an array of ImageryProviderViewModel instances available for selection. This property is observable.
-
selectedIconUrl :String
-
Gets the image url of the currently selected item. This property is observable.
- Default Value:
- undefined
-
selectedItem :ImageryProviderViewModel
-
Gets or sets the currently selected item. This property is observable.
- Default Value:
- undefined
-
selectedName :String
-
Gets the currently selected item name. This property is observable.
- Default Value:
- undefined
-
toggleDropDown :Command
-
Gets the command to toggle the visibility of the drop down.