PilotGaea 2D O'view
    正在準備搜尋索引...

    類型別名 ImageLoadFunctionType

    ImageLoadFunctionType: (image: ol.Image, url: string) => void

    A function that takes an ol.Image for the image and a {string} for the src as arguments. It is supposed to make it so the underlying image ol.Image#getImage is assigned the content specified by the src. If not specified, the default is

    function(image, src) {
      image.getImage().src = src;
    }
    

    Providing a custom imageLoadFunction can be useful to load images with post requests or - in general - through XHR requests, where the src of the image element would be set to a data URI when the content is loaded.

    類型宣告

      • (image: ol.Image, url: string): void
      • 參數

        回傳 void