English中文

BaseLayerPickerViewModel

new Cesium.BaseLayerPickerViewModel(options)

视图模型为 The view model for BaseLayerPicker.
名称 Name 类型 Type 说明 Description
options object 具有以下属性的对象: Object with the following properties:
名称 Name 类型 Type 默认值 Default 说明 Description
globe Globe 使用地球仪。 The Globe to use.
imageryProviderViewModels Array.<ProviderViewModel> [] 可选 optional 用于图像的 ProviderViewModel 实例数组。 The array of ProviderViewModel instances to use for imagery.
selectedImageryProviderViewModel ProviderViewModel 可选 optional 当前基础图像层的视图模型,如果未提供,则使用第一个可用图像层。 The view model for the current base imagery layer, if not supplied the first available imagery layer is used.
terrainProviderViewModels Array.<ProviderViewModel> [] 可选 optional 用于地形的 ProviderViewModel 实例数组。 The array of ProviderViewModel instances to use for terrain.
selectedTerrainProviderViewModel ProviderViewModel 可选 optional 当前基本地形图层的视图模型,如果未提供,则使用第一个可用地形图层。 The view model for the current base terrain layer, if not supplied the first available terrain layer is used.
抛出: Throws:
  • DeveloperError :imageryProviderViewModels 必须是一个数组。 : imageryProviderViewModels must be an array.
  • DeveloperError : terrainProviderViewModels must be an array.

成员 Members

获取按钮背景图像。这个性质是可以观察到的。 Gets the button background image. This property is observable.
获取按钮工具提示。这个性质是可以观察到的。 Gets the button tooltip. This property is observable.
获取或设置图像选择下拉列表当前是否可见。 Gets or sets whether the imagery selection drop-down is currently visible.
默认值: Default Value: false
获得地球仪。 Gets the globe.
获取或设置可用于图像选择的 ProviderViewModel 实例数组。这个性质是可以观察到的。 Gets or sets an array of ProviderViewModel instances available for imagery selection. This property is observable.
获取或设置当前选定的图像。这个性质是可以观察到的。 Gets or sets the currently selected imagery. This property is observable.
默认值: Default Value: undefined
获取或设置当前选定的地形。这个性质是可以观察到的。 Gets or sets the currently selected terrain. This property is observable.
默认值: Default Value: undefined
获取或设置可用于地形选择的 ProviderViewModel 实例数组。这个性质是可以观察到的。 Gets or sets an array of ProviderViewModel instances available for terrain selection. This property is observable.
获取切换下拉列表可见性的命令。 Gets the command to toggle the visibility of the drop down.
需要帮助吗?获得答案的最快方法是从社区和团队那里获得答案 Need help? The fastest way to get answers is from the community and team on the Cesium Forum.