English中文

ProviderViewModel

new Cesium.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.
category string 可选 optional 图层的类别。 A category for the layer.
creationFunction ProviderViewModel.CreationFunction | Command 一项功能或命令,用于创建一个或多个提供程序,当选择此项时,这些提供程序将添加到地球上。 A function or Command that creates one or more providers which will be added to the globe when this item is selected.
另见: See:

成员 Members

获取类别 Gets the category
获取创建一个或多个提供程序的命令,当选择此项时,这些提供程序将添加到地球上。 Gets the Command that creates one or more providers which will be added to the globe when this item is selected.
获取图标。这个性质是可以观察到的。 Gets the icon. This property is observable.
获取显示名称。这个性质是可以观察到的。 Gets the display name. This property is observable.
获取工具提示。这个性质是可以观察到的。 Gets the tooltip. This property is observable.

类型定义 Type Definitions

Cesium.ProviderViewModel.CreationFunction()ImageryProvider|TerrainProvider|Array.<ImageryProvider>|Array.<TerrainProvider>|Promise.<TerrainProvider>|Promise.<ImageryProvider>|Promise.<Array.<TerrainProvider>>|Promise.<Array.<ImageryProvider>>

一种创建一个或多个提供者的函数。 A function which creates one or more providers.
返回: Returns:
要添加到地球的 ImageryProvider 或 TerrainProvider 或提供者数组。 The ImageryProvider or TerrainProvider, or array of providers, to be added to the globe.
需要帮助吗?获得答案的最快方法是从社区和团队那里获得答案 Need help? The fastest way to get answers is from the community and team on the Cesium Forum.