@three-tile/lib
    Preparing search index...

    Function tileBoundsClip

    • 将瓦片影像超出mapBounds范围的部分设为透明

      Parameters

      • image: HTMLImageElement | OffscreenCanvas

        原始瓦片图像,类型可以是 OffscreenCanvas 或 HTMLImageElement

      • mapBounds: BoundsType

        地图范围,格式为 [minX, minY, maxX, maxY]

      • tileBounds: BoundsType

        瓦片范围,格式为 [minX, minY, maxX, maxY]

      Returns HTMLImageElement | OffscreenCanvas

      处理后的图像,可能是原始图像或处理后的 OffscreenCanvas