ProviderViewModel

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:

Members

creationCommand :Command

Gets the Command called to create the imagery provider or array of imagery providers to be added to the bottom of the layer collection.

iconUrl :String

Gets the icon. This property is observable.

name :String

Gets the display name. This property is observable.

tooltip :String

Gets the tooltip. This property is observable.