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

    Class DatasetGroup

    Internal Dataset class

    import Dataset from './dataset.js'
    
    const dataset = new Dataset(config)
    

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    _olLayer?: LayerGroup
    availability: IAvailability
    category?: Category
    created: Date
    dataLiabilityAgreement?: DataLiabilityAgreement
    datasetGroupItems?: DatasetGroupItem[]
    defaultDataset?: Dataset
    description?: string
    groupType?: string
    hasApiListener: boolean
    hasIncludedAttributes: boolean
    id: string
    license?: License
    livePreviews?: LivePreview[]
    metadata?: string
    owners?: Organization[]
    previewImages?: PreviewImage[]
    related?: Dataset[]
    shortTitle?: string
    supportContact?: string
    tags?: Tag[]
    thumbnail?: Image
    title: string
    type: string
    updated: Date
    wfsSource?: WfsSource
    wmsSource?: WmsSource
    wmtsSource?: WmtsSource

    Accessors

    • get error(): boolean

      Returns boolean

    • get favorite(): boolean

      Returns boolean

    • set favorite(isFavorite: boolean): void

      Parameters

      • isFavorite: boolean

      Returns void

    • get legends(): any[]

      Returns any[]

    • get opacity(): number

      Returns number

    • set opacity(opacity: number): void

      Parameters

      • opacity: number

      Returns void

    • get queryable(): boolean

      Determines if this dataset group supports querying

      Returns boolean

    • get renderable(): boolean

      Determines if this dataset group supports rendering

      Returns boolean

    • get visible(): boolean

      Returns boolean

    • set visible(visible: boolean): void

      Parameters

      • visible: boolean

      Returns void

    Methods

    • Parameters

      • event: string
      • ...args: unknown[]

      Returns void

    • Get an OpenLayers layer to add to a map

      Parameters

      • Optionalcopy: boolean

        Create a new OpenLayers layer without relation to the dataset group

      Returns LayerGroup

    • Remove a listen from an event

      Parameters

      • listener: EventListener_2

        returned by the on method

      Returns void

    • Listen to an event

      Parameters

      • event:
            | "change:favorite"
            | "change:visible"
            | "change:opacity"
            | "change"
            | "rendererror"

        Name of the event

      • callback: EventListenerCallback

        When the event is triggered

        • For 'change:opacity' the callback function is called with the event name and the new opacity
        • For 'change:visible' the callback function is called with the event name and the visible state
        • For 'change:opacity' the callback function is called with the event name and the opacity state
        • For 'change:favorite' the callback function is called with the event name and the favorite state
        • For 'rendererror' the callback function is called with the event name and the requested URL

      Returns EventListener_2

      A listener that can be used for removing the listener

    • Parameters

      • feature: Feature

      Returns any

    • Returns Promise<Feature<Geometry>[]>

    • Query the Dataset for a specific feature using id

      Returns Promise<Feature<Geometry>>

      a list of queried dataset with the related hit

    • Set the active sublayer on range

      Parameters

      Returns void