# @types/proj4leaflet

> TypeScript definitions for proj4leaflet

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

## Install

```sh
npm install @types/proj4leaflet
pnpm add @types/proj4leaflet
yarn add @types/proj4leaflet
bun add @types/proj4leaflet
```

## 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.12 |
| Published | 2025-09-03 |
| First published | 2017-07-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 6.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51443 |
| Maintainers | types |

## Links

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

## Dependencies (3)

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

## Recent versions

- 1.0.12 (latest) — 2025-09-03
- 1.0.11 (ts5.1) — 2025-07-01
- 1.0.10 (ts4.6) — 2023-11-07
- 1.0.7 (ts4.2) — 2022-12-30
- 1.0.6 (ts3.6) — 2021-07-08
- 1.0.5 (ts2.3) — 2017-12-28
- 1.0.3 (ts2.0) — 2017-08-29
- 1.0.9 — 2023-10-18
- 1.0.8 — 2023-09-24
- 1.0.4 — 2017-11-09
- 1.0.2 — 2017-08-21
- 1.0.1 — 2017-07-18
- 1.0.0 — 2017-07-17

## README

# Installation
> `npm install --save @types/proj4leaflet`

# Summary
This package contains type definitions for proj4leaflet (https://github.com/kartena/Proj4Leaflet#readme).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/proj4leaflet.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/proj4leaflet/index.d.ts)
````ts
import * as geojson from "geojson";
import * as L from "leaflet";
import { Converter } from "proj4/dist/lib/core";

declare module "leaflet" {
    namespace Proj {
        class CRS implements CRS {
            projection: Projection;
            transformation: Transformation;
            code?: string | undefined;
            wrapLng?: [number, number] | undefined;
            wrapLat?: [number, number] | undefined;
            infinite: boolean;

            constructor(projection: Converter, options?: ProjCRSOptions);
            constructor(code: string, proj4def: string, options?: ProjCRSOptions);

            latLngToPoint(latlng: LatLngExpression, zoom: number): Point;

            pointToLatLng(point: PointExpression, zoom: number): LatLng;

            project(latlng: LatLng | LatLngLiteral): Point;

            unproject(point: PointExpression): LatLng;

            scale(zoom: number): number;

            zoom(scale: number): number;

            getProjectedBounds(zoom: number): Bounds;

            distance(latlng1: LatLngExpression, latlng2: LatLngExpression): number;

            wrapLatLng(latlng: LatLng | LatLngLiteral): LatLng;
        }

        class GeoJSON extends L.GeoJSON {}

        function geoJson(geojson?: Proj4GeoJSONFeature, options?: GeoJSONOptions): GeoJSON;

        class ImageOverlay extends L.ImageOverlay {}

        function imageOverlay(
            imageUrl: string,
            bounds: LatLngBoundsExpression,
            options?: ImageOverlayOptions,
        ): ImageOverlay;

        interface ProjCRSOptions {
            bounds?: Bounds | undefined;
            origin?: [number, number] | undefined;
            scales?: number[] | undefined;
            resolutions?: number[] | undefined;
            transformation?: Transformation | undefined;
        }
    }
}
export type Proj4GeoJSONFeature = geojson.Feature<geojson.GeometryObject> & {
    crs?: { type: string; properties: { name: string } } | undefined;
};

````

### Additional Details
 * Last updated: Wed, 03 Sep 2025 08:02:48 GMT
 * Dependencies: [@types/geojson](https://npmjs.com/package/@types/geojson), [@types/leaflet](https://npmjs.com/package/@types/leaflet), [proj4](https://npmjs.com/package/proj4)

# Credits
These definitions were written by [BendingBender](https://github.com/BendingBender).

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