/Proj4Leaflet

Smooth Proj4js integration with Leaflet.

Primary LanguageJavaScriptBSD 2-Clause "Simplified" LicenseBSD-2-Clause

Proj4Leaflet NPM version

This Leaflet plugin adds support for using projections supported by Proj4js.

For compatibility with Leaflet 1.0-beta1 use the leaflet-proj-refactor branch.

Features

  • Supports all commonly used projections
  • Extends Leaflet with full TMS support even for local projections
  • Makes it easy to use GeoJSON data with other projections than WGS84
  • Image overlays with bounds set from projected coordinates rather than LatLngs

Leaflet comes with built in support for tiles in Spherical Mercator. If you need support for tile layers in other projections, the Proj4Leaflet plugin lets you use tiles in any projection supported by Proj4js, which means support for just about any projection commonly used.

For more details and API docs, see the Proj4Leaflet site.