new BaseLayerPickerViewModel
The ViewModel for BaseLayerPicker.
Parameters:
Name | Type | Argument | 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 :Observable
-
Gets or sets whether the imagery selection dropDown is currently visible.
-
imageryLayers :ImageryLayerCollection
-
Gets the ImageryLayerCollection.
-
imageryProviderViewModels :Observable
-
Gets the observable array of ImageryProviderViewModel instances available for selection.
-
selectedIconUrl :Observable
-
Gets the image url of the currently selected item.
-
selectedItem :Observable
-
Gets a writable observable for the currently selected item.
-
selectedName :Observable
-
Gets the name of the currently selected item.
-
toggleDropDown :Command
-
Command to toggle dropDown visibility.