# @nextgis/webmap

> Universal map constructor

Latest version **4.1.1** (published 2026-11-13) · MIT license · 0 weekly downloads

## Install

```sh
npm install @nextgis/webmap
pnpm add @nextgis/webmap
yarn add @nextgis/webmap
bun add @nextgis/webmap
```

## Health

**Score 65/100 (B)** — status: active.

Positive: has types; esm support; no vulnerabilities; recently updated; high maintenance score.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 4.1.1 |
| Published | 2026-11-13 |
| First published | 2018-08-20 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 9 |
| Unpacked size | 1.9 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 31 |
| Author | NextGIS |
| Maintainers | rendrom, maximdubinin, karavanjo |
| Keywords | NextGIS, MAP |

## Links

- npm: https://www.npmjs.com/package/@nextgis/webmap
- Repository: https://github.com/nextgis/nextgis_frontend
- Homepage: https://github.com/nextgis/nextgis_frontend/tree/master/packages/webmap#readme
- Issues: https://github.com/nextgis/nextgis_frontend/issues
- npm.io page: https://npm.io/package/@nextgis/webmap

## Dependencies (9)

- [events](https://npm.io/package/events.md) *
- [@types/events](https://npm.io/package/@types/events.md) ^3.0.0
- [@nextgis/paint](https://npm.io/package/@nextgis/paint.md) 4.1.1
- [@nextgis/utils](https://npm.io/package/@nextgis/utils.md) 4.1.1
- [@types/geojson](https://npm.io/package/@types/geojson.md) ^7946.0.14
- [@nextgis/control-container](https://npm.io/package/@nextgis/control-container.md) 4.1.1
- [@nextgis/properties-filter](https://npm.io/package/@nextgis/properties-filter.md) 4.1.1
- [strict-event-emitter-types](https://npm.io/package/strict-event-emitter-types.md) ^2.0.0
- [@nextgis/cancelable-promise](https://npm.io/package/@nextgis/cancelable-promise.md) 4.0.2

## Recent versions

- 4.1.1 (latest) — 2026-11-13
- 4.0.0-alpha.1 (alpha) — 2026-05-27
- 4.1.0 — 2026-11-11
- 4.0.2 — 2026-11-05
- 4.0.1 — 2026-11-02
- 4.0.0 — 2026-08-30
- 4.0.0-rc.2 — 2026-08-30
- 4.0.0-rc.1 — 2026-08-29
- 4.0.0-rc.0 — 2026-08-27
- 4.0.0-alpha.8 — 2026-08-25
- 4.0.0-alpha.6 — 2026-08-24
- 4.0.0-alpha.5 — 2026-08-21
- 4.0.0-alpha.4 — 2026-08-18
- 4.0.0-alpha.2 — 2026-05-28
- 4.0.0-alpha.0 — 2026-05-12
- … 222 more at https://npm.io/package/@nextgis/webmap/versions

## README

# WebMap

![version](https://img.shields.io/npm/v/@nextgis/webmap)

Framework-independent map engine and adapter contract.

`WebMap` manages the map lifecycle, layers, controls, events, view state,
selection, filtering, and ordering without depending on a particular rendering
engine or backend. It is primarily intended for adapter and library authors.

Applications connected to NextGIS Web normally use one of `ngw-leaflet`,
`ngw-ol`, or `ngw-maplibre-gl`. Their map classes inherit the API documented by
this package through `NgwMap`.

## Installation

```bash
npm install @nextgis/webmap @nextgis/leaflet-map-adapter leaflet
```

## Usage

```javascript
import { createWebMap } from '@nextgis/webmap';
import MapAdapter from '@nextgis/leaflet-map-adapter';
import 'leaflet/dist/leaflet.css';

const webMap = await createWebMap({
  target: 'map',
  mapAdapter: new MapAdapter(),
});
```

Use this package to implement:

- common layer operations through `WebMapLayers`;
- controls through `WebMapControls`;
- lifecycle, events, and view operations through `WebMapMain`;
- new `MapAdapter` and `LayerAdapter` implementations;
- starter kits that register controls and layer providers.

Backend-specific behavior, including NextGIS Web requests and resources, does
not belong in this package.

See the [API Documentation](https://code-api.nextgis.com/modules/_nextgis_webmap.html)
and the [package architecture guide](../../docs/PACKAGES.md).

## Commercial support

Need to fix a bug or add a feature to `@nextgis/webmap`? We provide custom development and support for this software. [Contact us](http://nextgis.com/contact/) to discuss options!

[![http://nextgis.com](https://nextgis.com/img/nextgis.png)](http://nextgis.com)

---
_Source: https://npm.io/package/@nextgis/webmap · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
