All Downloads are FREE. Search and download functionalities are using the official Maven repository.

main.cesium.BaseLayerPickerViewModel.kt Maven / Gradle / Ivy

There is a newer version: 1.90.0-10
Show newest version
// Automatically generated - do not modify!

@file:Suppress(
    "NON_EXTERNAL_DECLARATION_IN_INAPPROPRIATE_FILE",
)

package cesium

/**
 * The view model for [BaseLayerPicker].
 * @see Online Documentation
 */
@JsName("\$cesium__BaseLayerPickerViewModel")
external class BaseLayerPickerViewModel(options: ConstructorOptions) {
    /**
     * @property [globe] The Globe to use.
     * @property [imageryProviderViewModels] The array of ProviderViewModel instances to use for imagery.
     *   Default value - `[]`
     * @property [selectedImageryProviderViewModel] The view model for the current base imagery layer, if not supplied the first available imagery layer is used.
     * @property [terrainProviderViewModels] The array of ProviderViewModel instances to use for terrain.
     *   Default value - `[]`
     * @property [selectedTerrainProviderViewModel] The view model for the current base terrain layer, if not supplied the first available terrain layer is used.
     */
    interface ConstructorOptions {
        var globe: Globe
        var imageryProviderViewModels: Array?
        var selectedImageryProviderViewModel: ProviderViewModel?
        var terrainProviderViewModels: Array?
        var selectedTerrainProviderViewModel: ProviderViewModel?
    }

    /**
     * Gets or sets an array of ProviderViewModel instances available for imagery selection.
     * This property is observable.
     * @see Online Documentation
     */
    var imageryProviderViewModels: Array

    /**
     * Gets or sets an array of ProviderViewModel instances available for terrain selection.
     * This property is observable.
     * @see Online Documentation
     */
    var terrainProviderViewModels: Array

    /**
     * Gets or sets whether the imagery selection drop-down is currently visible.
     * @see Online Documentation
     */
    var dropDownVisible: Boolean

    /**
     * Gets the button tooltip.  This property is observable.
     * @see Online Documentation
     */
    var buttonTooltip: String

    /**
     * Gets the button background image.  This property is observable.
     * @see Online Documentation
     */
    var buttonImageUrl: String

    /**
     * Gets or sets the currently selected imagery.  This property is observable.
     * @see Online Documentation
     */
    var selectedImagery: ProviderViewModel

    /**
     * Gets or sets the currently selected terrain.  This property is observable.
     * @see Online Documentation
     */
    var selectedTerrain: ProviderViewModel

    /**
     * Gets the command to toggle the visibility of the drop down.
     * @see Online Documentation
     */
    var toggleDropDown: Command

    /**
     * Gets the globe.
     * @see Online Documentation
     */
    var globe: Globe
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy