---
title: "Polygon | JavaScript maps SDK"
description: "Documentation for MapTiler SDK"
---

> For AI agents: a documentation index is available at [/llms.txt](https://docs.maptiler.com/llms.txt). Markdown versions of all pages are available by appending .md to any URL.

# Interface Polygon

Polygon geometry object. [https://tools.ietf.org/html/rfc7946#section-3.1.6](https://tools.ietf.org/html/rfc7946#section-3.1.6)

interface Polygon {  
    [bbox](#bbox)?: [BBox](https://docs.maptiler.com/sdk-js/api-reference/types/Externals.BBox/);  
    [coordinates](#coordinates): [Position](https://docs.maptiler.com/sdk-js/api-reference/types/Externals.Position/)\[\]\[\];  
    [type](#type): "Polygon";  
}

#### Hierarchy ([View Summary](https://docs.maptiler.com/sdk-js/api-reference/hierarchy/#Externals.Polygon))

-   [GeoJsonObject](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.GeoJsonObject/)
    -   Polygon

##### Index

### Properties[](#properties)

[bbox?](#bbox) [coordinates](#coordinates) [type](#type)

## Properties[](#properties-1)

### `Optional`bbox[](#bbox)

bbox?: [BBox](https://docs.maptiler.com/sdk-js/api-reference/types/Externals.BBox/)

Bounding box of the coordinate range of the object's Geometries, Features, or Feature Collections. The value of the bbox member is an array of length 2\*n where n is the number of dimensions represented in the contained geometries, with all axes of the most southwesterly point followed by all axes of the more northeasterly point. The axes order of a bbox follows the axes order of geometries. [https://tools.ietf.org/html/rfc7946#section-5](https://tools.ietf.org/html/rfc7946#section-5)

Inherited from [GeoJsonObject](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.GeoJsonObject/).[bbox](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.GeoJsonObject/#bbox)

### coordinates[](#coordinates)

coordinates: [Position](https://docs.maptiler.com/sdk-js/api-reference/types/Externals.Position/)\[\]\[\]

### type[](#type)

type: "Polygon"

Specifies the type of GeoJSON object.

Overrides [GeoJsonObject](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.GeoJsonObject/).[type](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.GeoJsonObject/#type)
