TomTom Maps for JavaScript
    Preparing search index...

    Type Alias HasBBox

    Input type representing a geographic bounding box or an object from which a bounding box can be derived.

    Accepts various formats:

    • BBox: Direct GeoJSON bounding box array [west, south, east, north]
    • GeoJsonObject: Any GeoJSON object with a bbox property or from which bounds can be calculated
    • GeoJsonObject[]: Array of GeoJSON objects (convenience extension to standard GeoJSON)

    Bounding boxes follow the format: [minLon, minLat, maxLon, maxLat] or [west, south, east, north]

    // Direct BBox array
    const bbox1: HasBBox = [4.8, 52.3, 5.0, 52.4];

    // Feature with bbox property
    const bbox2: HasBBox = {
    type: 'Feature',
    bbox: [4.8, 52.3, 5.0, 52.4],
    geometry: { type: 'Polygon', coordinates: [...] },
    properties: {}
    };

    // Array of features to derive bounds from
    const bbox3: HasBBox = [feature1, feature2, feature3];