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.