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

    Class Dataset

    Internal Dataset class

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

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    availability: IAvailability
    category?: Category
    created: Date
    dataLiabilityAgreement?: DataLiabilityAgreement
    description?: string
    hasApiListener: boolean
    hasIncludedAttributes: boolean
    id: string
    license?: License
    livePreviews?: LivePreview[]
    metadata?: string
    owners?: Organization[]
    previewImages?: PreviewImage[]
    related?: Dataset[]
    supportContact?: string
    tags?: Tag[]
    thumbnail?: Image
    title: string
    type: string
    updated: Date

    Accessors

    • get error(): boolean

      Returns boolean

    • get favorite(): boolean

      Returns boolean

    • set favorite(isFavorite: boolean): void

      Parameters

      • isFavorite: boolean

      Returns void

    • get legends(): Legend[]

      Returns Legend[]

    • get opacity(): number

      Returns number

    • set opacity(opacity: number): void

      Parameters

      • opacity: number

      Returns void

    • get queryable(): boolean

      Determines if this dataset supports querying

      Returns boolean

    • get renderable(): boolean

      Determines if this dataset supports rendering

      Returns boolean

    • get visible(): boolean

      Returns boolean

    • set visible(visible: boolean): void

      Parameters

      • visible: boolean

      Returns void

    • get wfsSource(): undefined | WfsSource

      Returns undefined | WfsSource

    • set wfsSource(wfsSource: undefined | WfsSource): void

      Parameters

      Returns void

    • get wmsSource(): undefined | WmsSource

      Returns undefined | WmsSource

    • set wmsSource(wmsSource: undefined | WmsSource): void

      Parameters

      Returns void

    • get wmtsSource(): undefined | WmtsSource

      Returns undefined | WmtsSource

    • set wmtsSource(wmtsSource: undefined | WmtsSource): void

      Parameters

      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

      • OptionalsourceType: "WMS" | "WMTS"

        Force to use a specific source type

      Returns BaseLayer

    • Remove a listen from an event

      Parameters

      • listener: EventListener_2

        returned by the on method

      Returns void

    • Listen to an event

      • 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

      Parameters

      • event: DatasetEventTypes

        Name of the event

      • callback: EventListenerCallback

        When the event is triggered

      Returns EventListener_2

      A listener that can be used for removing the listener

    • Parameters

      • feature: Feature

      Returns any

    • Parameters

      • filter: Filter
      • Optionallimit: number
      • Optionaltimeout: number

      Returns Promise<Feature<Geometry>[]>

    • Query a Dataset with a coordinate

      Parameters

      • coordinate: Coordinate

        The coordinate to query with

      • Optionaloptions: QueryOptions

        Options for the query

      Returns Promise<QueryResult>

      a query result

    • Query a Dataset with an extent

      Parameters

      • extent: Extent

        The bounding box to query with

      • Optionaloptions: QueryOptions

        Options for the query

      Returns Promise<QueryResult>

      a query result

    • Query the Dataset with a Geometry

      Parameters

      • geometry: Geometry

        The Geometry to query with

      • Optionaloptions: QueryOptions

        Options for the query

      Returns Promise<QueryResult>

      a query result

    • Query the Dataset with a Geometry

      Parameters

      • geometry: Geometry

        The Geometry to query with

      • Optionaloptions: QueryOptions

        Options for the query

      Returns Promise<QueryResult>

      a query result

    • Query the Dataset for a specific feature using id

      Parameters

      • id: string | number

        An id of a Feature from the Dataset

      Returns Promise<Feature<Geometry>>

      a list of queried dataset with the related hit

    • Parameters

      Returns void

    • Returns void