ImageryProviderViewModel

ImageryProviderViewModel

new

ViewModel that represents each item in the BaseLayerPicker.

Parameters:
Name Type Description
description Object The object containing all parameters.
Properties
Name Type Description
name Observable The name of the layer.
tooltip Observable The tooltip to show when the item is moused over.
iconUrl Observable An icon representing the layer.
creationCommand Command A function which creates the ImageryProvider for adding to the layers collection.
Throws:
See:
Source:

Members

:Command

Gets or sets the function called by the widget to create the imagery provider represented by this view model.

:Observable

Gets a writable observable representing the icon associated with this layer.

:Observable

Gets a writable observable representing the name of this provider.

:Observable

Gets a writable observable representing the tooltip to show when the item is moused over.

Methods

<static>

Creates an instance from constant, non-observable values.

Parameters:
Name Type Description
description Object The object containing all parameters.
Properties
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.
createFunction function A function which creates the ImageryProvider for adding to the layers collection.
Throws: