new ProviderViewModel(options)
A view model that represents each item in the BaseLayerPicker.
Name |
Type |
Description |
options |
Object
|
The object containing all parameters.
Name |
Type |
Description |
name |
String
|
The name of the layer. |
tooltip |
String
|
The tooltip to show when the item is moused over. |
iconUrl |
String
|
An icon representing the layer. |
creationFunction |
function
|
Command
|
A function or Command which creates the ImageryProvider or array of ImageryProviders to be added to the layers collection. |
|
See: