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

A collection of feature objects. [https://tools.ietf.org/html/rfc7946#section-3.3](https://tools.ietf.org/html/rfc7946#section-3.3)

interface FeatureCollection<  
    [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/);  
    [features](#features): [Feature](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.Feature/)<[G](#g), [P](#p)\>\[\];  
    [type](#type): "FeatureCollection";  
}

#### 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.FeatureCollection))

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

##### Index

### Properties[](#properties)

[bbox?](#bbox) [features](#features) [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)

### features[](#features)

features: [Feature](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.Feature/)<[G](#g), [P](#p)\>\[\]

### type[](#type)

type: "FeatureCollection"

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)
