Class: ProviderViewModel

ProviderViewModel

new ProviderViewModel()

Represents the view model of each item in BaseLayerPicker.

Name Type Description
options.name String

The name of the layer.

options.tooltip String

The tool tip displayed when the mouse hovers over a project.

options.iconUrl String

The icon representing the layer.

See:

Members

readonly categoryString

Gets the category

readonly creationCommandCommand

Get the command to create one or more providers that will be added to the globe when selecting this project.

iconUrlString

Get the icon. This attribute is observable.

nameString

Get the display name. This attribute is observable.

tooltipString

Get tooltips. This attribute is observable.

Type Definitions

CreationFunction(){ImageryProvider|TerrainProvider|Array.<ImageryProvider>|Array.<TerrainProvider>}

Create functions for one or more providers.

Returns:
Type Description
ImageryProvider | TerrainProvider | Array.<ImageryProvider> | Array.<TerrainProvider> A function used to create one or more providers. This function is used to add an image provider, terrain provider, or provider array to the globe.