This is the documentation of version 1.0.0-rc.4. Go to the latest version, 1.0.0-rc.5.
TomTom Maps for JavaScript
    Preparing search index...

    Function polygonFromBBox

    • Creates a GeoJSON Polygon Feature representing the area of the given bounding box.

      For a box crossing the antimeridian, with west > east, the ring's east edge is east + 360, which keeps it around the box rather than around the rest of the world.

      Parameters

      • bbox: BBox

        The bounding box as [west, south, east, north].

      Returns Feature<Polygon>