---
title: "Feature | 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 Feature<G, P>

A feature object which contains a geometry and associated properties. [https://tools.ietf.org/html/rfc7946#section-3.2](https://tools.ietf.org/html/rfc7946#section-3.2)

interface Feature<[G](#g) extends [Geometry](https://docs.maptiler.com/sdk-js/api-reference/types/Externals.Geometry/) | null \= [Geometry](https://docs.maptiler.com/sdk-js/api-reference/types/Externals.Geometry/), [P](#p) \= [GeoJsonProperties](https://docs.maptiler.com/sdk-js/api-reference/types/Externals.GeoJsonProperties/)\> {  
    [bbox](#bbox)?: [BBox](https://docs.maptiler.com/sdk-js/api-reference/types/Externals.BBox/);  
    [geometry](#geometry): [G](#g);  
    [id](#id)?: string | number;  
    [properties](#properties): [P](#p);  
    [type](#type): "Feature";  
}

#### Type Parameters

-   G extends [Geometry](https://docs.maptiler.com/sdk-js/api-reference/types/Externals.Geometry/) | null = [Geometry](https://docs.maptiler.com/sdk-js/api-reference/types/Externals.Geometry/)
-   P = [GeoJsonProperties](https://docs.maptiler.com/sdk-js/api-reference/types/Externals.GeoJsonProperties/)

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

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

##### Index

### Properties[](#properties-1)

[bbox?](#bbox) [geometry](#geometry) [id?](#id) [properties](#properties) [type](#type)

## Properties[](#properties-2)

### `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)

### geometry[](#geometry)

geometry: [G](#g)

The feature's geometry

### `Optional`id[](#id)

id?: string | number

A value that uniquely identifies this feature in a [https://tools.ietf.org/html/rfc7946#section-3.2](https://tools.ietf.org/html/rfc7946#section-3.2).

### properties[](#properties)

properties: [P](#p)

Properties associated with this feature.

### type[](#type)

type: "Feature"

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)
