new ImageryProviderViewModel
ViewModel that represents each item in the BaseLayerPicker.
Parameters:
| Name | Type | Description | |||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
description |
Object | The object containing all parameters.
Properties
|
Throws:
-
DeveloperError : description.name is required.
-
DeveloperError : description.tooltip is required.
-
DeveloperError : description.iconUrl is required.
-
DeveloperError : description.creationCommand is required.
Members
-
creationCommand :Command
-
Gets or sets the function called by the widget to create the imagery provider represented by this view model.
-
iconUrl :Observable
-
Gets a writable observable representing the icon associated with this layer.
-
name :Observable
-
Gets a writable observable representing the name of this provider.
-
tooltip :Observable
-
Gets a writable observable representing the tooltip to show when the item is moused over.
Methods
-
<static> fromConstants
-
Creates an instance from constant, non-observable values.
Parameters:
Name Type Description descriptionObject The object containing all parameters. Properties
Name Type Description namestring The name of the layer. tooltipstring The tooltip to show when the item is moused over. iconUrlstring An icon representing the layer. createFunctionfunction A function which creates the ImageryProvider for adding to the layers collection. Throws:
-
DeveloperError : description.name is required.
-
DeveloperError : description.tooltip is required.
-
DeveloperError : description.iconUrl is required.
-
DeveloperError : description.creationFunction is required.
-
