# @types/leaflet-boundary-canvas

> TypeScript definitions for leaflet-boundary-canvas

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

## Install

```sh
npm install @types/leaflet-boundary-canvas
pnpm add @types/leaflet-boundary-canvas
yarn add @types/leaflet-boundary-canvas
bun add @types/leaflet-boundary-canvas
```

## 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.

Negative: stale.

## Facts

| | |
|---|---|
| Version | 1.0.4 |
| Published | 2025-09-03 |
| First published | 2022-10-20 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 4.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51440 |
| Maintainers | types |

## Links

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

## Dependencies (2)

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

## Recent versions

- 1.0.4 (latest) — 2025-09-03
- 1.0.3 (ts4.5) — 2023-11-07
- 1.0.1 (ts4.3) — 2023-08-30
- 1.0.0 (ts4.1) — 2022-10-20
- 1.0.2 — 2023-10-18

## README

# 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](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/leaflet-boundary-canvas/index.d.ts)
````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
 * Last updated: Wed, 03 Sep 2025 08:02:47 GMT
 * Dependencies: [@types/geojson](https://npmjs.com/package/@types/geojson), [@types/leaflet](https://npmjs.com/package/@types/leaflet)

# Credits
These definitions were written by [TurtIeSocks](https://github.com/TurtIeSocks).

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