CanvasFunctionType: ((extent, resolution, pixelRatio, size, proj) => HTMLCanvasElement)

Type declaration

    • (extent, resolution, pixelRatio, size, proj): HTMLCanvasElement
    • A function returning the canvas element ({HTMLCanvasElement}) used by the source as an image. The arguments passed to the function are: ol.Extent the image extent, {number} the image resolution, {number} the device pixel ratio, ol.Size the image size, and ol.proj.Projection the image projection. The canvas returned by this function is cached by the source. The this keyword inside the function references the ol.source.ImageCanvas.

      Parameters

      Returns HTMLCanvasElement

Generated using TypeDoc