A function that is called to trigger asynchronous canvas drawing. It is called with a "done" callback that should be called when drawing is done. If any error occurs during drawing, the "done" callback should be called with that error.

Hierarchy (view full)

Constructors

  • Parameters

    • extent: Extent

      Extent.

    • resolution: number

      Resolution.

    • pixelRatio: number

      Pixel ratio.

    • canvas: HTMLCanvasElement

      Canvas.

    • Optional loader: Loader

      Optional loader function to support asynchronous canvas drawing.

    Returns external.ol.ImageCanvas

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.

    Api

  • Clean up.

    Returns void

  • Protected

    Extension point for disposable objects.

    Returns void

  • Get any error associated with asynchronous rendering.

    Returns null | Error

    Any error that occurred during rendering.

  • Returns Extent

    Extent.

  • Returns HTMLCanvasElement

    Canvas element.

  • 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

    • Optional type: 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