@types/mapbox-gl-leaflet
TypeScript icon, indicating that this package has built-in type declarations

0.0.4 • Public • Published

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: Tue, 07 Nov 2023 09:09:39 GMT
  • Dependencies: @types/leaflet

Credits

These definitions were written by Alexey Gorshkov.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/mapbox-gl-leaflet

Weekly Downloads

2,577

Version

0.0.4

License

MIT

Unpacked Size

3.31 kB

Total Files

5

Last publish

Collaborators

  • types