---
title: "Map | JavaScript maps SDK"
description: "Interactive Map class for MapTiler SDK JS."
---

> 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.

# Map

The `Map` object represents the map on your page. It exposes methods and properties that enable you to programmatically change the map, and fires events as users interact with it.

You create a `Map` by specifying a `container` and other options. Then SDK JS initializes the map on the page and returns your `Map` object.

**Example**

```js
import * as maptilersdk from '@maptiler/sdk';

const map = new maptilersdk.Map({
  container: 'map',
  center: [-122.420679, 37.772537],
  zoom: 13,
  style: maptilersdk.MapStyle.STREETS,
  hash: true,
});
```

## API reference

[Class Map](https://docs.maptiler.com/sdk-js/api-reference/classes/Map/)

## Related examples

-   [Display a map](https://docs.maptiler.com/sdk-js/examples/add-map/)
