# @types/mapbox-gl-leaflet

> TypeScript definitions for mapbox-gl-leaflet

Latest version **0.0.5** (published 2025-09-03) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/mapbox-gl-leaflet
pnpm add @types/mapbox-gl-leaflet
yarn add @types/mapbox-gl-leaflet
bun add @types/mapbox-gl-leaflet
```

## Health

**Score 55/100 (C)** — status: stable.

Positive: has types; no vulnerabilities; high maintenance score; popular repo; extremely popular.

Warnings: low downloads; no esm support; pre 1.0.

Negative: stale.

## Facts

| | |
|---|---|
| Version | 0.0.5 |
| Published | 2025-09-03 |
| First published | 2018-04-19 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 3.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51440 |
| Maintainers | types |

## Links

- npm: https://www.npmjs.com/package/@types/mapbox-gl-leaflet
- Repository: https://github.com/DefinitelyTyped/DefinitelyTyped
- Homepage: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/mapbox-gl-leaflet
- npm.io page: https://npm.io/package/@types/mapbox-gl-leaflet

## Dependencies (1)

- [@types/leaflet](https://npm.io/package/@types/leaflet.md) ^1.9

## Recent versions

- 0.0.5 (latest) — 2025-09-03
- 0.0.4 (ts4.5) — 2023-11-07
- 0.0.1 (ts2.3) — 2019-02-13
- 0.0.3 — 2023-10-18
- 0.0.2 — 2023-09-27
- 0.0.0 — 2018-04-19

## README

# Installation
> `npm install --save @types/mapbox-gl-leaflet`

# Summary
This package contains type definitions for mapbox-gl-leaflet (https://github.com/mapbox/mapbox-gl-leaflet).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/mapbox-gl-leaflet.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/mapbox-gl-leaflet/index.d.ts)
````ts
import * as L from "leaflet";

declare module "leaflet" {
    class MapboxGL extends Layer {
        constructor(options: MapboxGLOptions);
    }

    function mapboxGL(options: MapboxGLOptions): MapboxGL;

    interface MapboxGLOptions {
        accessToken: string;
        style: string;
    }
}

````

### Additional Details
 * Last updated: Wed, 03 Sep 2025 08:02:48 GMT
 * Dependencies: [@types/leaflet](https://npmjs.com/package/@types/leaflet)

# Credits
These definitions were written by [Alexey Gorshkov](https://github.com/agorshkov23).

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