npm.io
0.0.5 • Published 1 year ago

@types/mapbox-gl-leaflet

Licence
MIT
Version
0.0.5
Deps
1
Size
3 kB
Vulns
0
Weekly
0
Stars
51.4K

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

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 0848 GMT
  • Dependencies: @types/leaflet

Credits

These definitions were written by Alexey Gorshkov.