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

1.0.3 • Public • Published

Installation

npm install --save @types/leaflet-boundary-canvas

Summary

This package contains type definitions for leaflet-boundary-canvas (https://github.com/ttungbmt/leaflet-boundary-canvas#readme).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/leaflet-boundary-canvas.

index.d.ts

import type { FeatureCollection } from "geojson";
import * as L from "leaflet";

declare module "leaflet" {
    namespace TileLayer {
        interface BoundaryCanvasOptions extends TileLayerOptions {
            boundary?: FeatureCollection | undefined;
            crossOrigin?: boolean | undefined;
            trackAttribution?: boolean | undefined;
        }

        class BoundaryCanvas extends TileLayer {
            constructor(url: string, options?: BoundaryCanvasOptions);
            static createFromLayer(tileLayer: TileLayer, options?: BoundaryCanvasOptions): BoundaryCanvas;
        }

        function boundaryCanvas(url: string, options?: BoundaryCanvasOptions): BoundaryCanvas;
    }
}

Additional Details

Credits

These definitions were written by TurtIeSocks.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/leaflet-boundary-canvas

Weekly Downloads

454

Version

1.0.3

License

MIT

Unpacked Size

4.26 kB

Total Files

5

Last publish

Collaborators

  • types