Loader function used for image sources. Receives extent, resolution and pixel ratio as arguments. The function returns a promise for an import("./Image.js").ImageObject image object.

Hierarchy (view full)

Constructors

  • Parameters

    • extent: Extent

      Extent.

    • resolution: undefined | number | number[]

      Resolution. If provided as array, x and y resolution will be assumed.

    • pixelRatio: number

      Pixel ratio.

    • stateOrLoader: any

      State.

    Returns external.ol.Image

Properties

disposed: boolean

The object has already been disposed.

extent: Extent
loader: Loader
resolution: undefined | number | number[]
state: any

Methods

  • Parameters

    • type: string

      Type.

    • listener: Listener

      Listener.

    Returns void

  • Protected

    Returns void

  • Dispatches an event and calls all listeners listening for events of this type. The event parameter can either be a string or an Object with a type property.

    Parameters

    • event: string | BaseEvent

      Event object.

    Returns undefined | boolean

    false if anyone called preventDefault on the event object or if any of the listeners returned false.

  • Clean up.

    Returns void

  • Protected

    Extension point for disposable objects.

    Returns void

  • Returns Extent

    Extent.

  • Returns ImageLike

    Image.

  • Get the listeners for a specified event type. Listeners are returned in the order that they will be called in.

    Parameters

    • type: string

      Type.

    Returns undefined | Listener[]

    Listeners.

  • Returns number

    PixelRatio.

  • Returns number | number[]

    Resolution.

  • Returns any

    State.

  • Parameters

    • Optionaltype: string

      Type. If not provided, true will be returned if this event target has any listeners.

    Returns boolean

    Has listeners.

  • Load not yet loaded URI.

    Returns void

  • Parameters

    • type: string

      Type.

    • listener: Listener

      Listener.

    Returns void

  • Parameters

    • image: ImageLike

      The image.

    Returns void

  • Parameters

    • resolution: number | number[]

      Resolution.

    Returns void