@dmp/map-components
    Preparing search index...

    Class LayerToggle

    Index

    Properties

    api: Api

    The API instance that should control the state of the LayerControl

    center?: [number, number]

    The center of the map in the LayerToggle Control

    datasets: string[]

    The datasets that should be controlled by the LayerControl

    getActive: () => undefined | ToggleOption

    Get the currently active dataset

    resolutions?: number[]

    The resolutions of the map in the LayerToggle Control

    setActive: (id: string) => void

    Set the active dataset by id

    view?: View

    An OpenLayers View instance that should be used in the small map in the LayerToggle Control

    zoom?: number

    The zoomlevel of the map in the LayerToggle Control