gis-tools-ts - v0.6.0
    Preparing search index...

    Function bboxToXYZBounds

    • Convert a bbox of the form [w, s, e, n] to a tile's bounding box in the form of [minX, maxX, minY, maxY] The bbox can be in lon-lat (WGS84) or WebMercator (900913) The default expectation is in WebMercator (900913)

      Parameters

      • bbox: BBox

        the bounding box

      • zoom: number

        the zoom level

      • tmsStyle: boolean = true

        if true, the y is inverted

      • source: Sources = '900913'

        the source

      • tileSize: number = 512

        in pixels

      Returns BBox

      • the tile's bounding box [minX, minY, maxX, maxY] in XYZ space