Skip to content

kluizeberg/Leaflet.Proj4js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Leaflet.Proj4js

Plugin for Leaflet offering a lightweight interface with Proj4js. Inspired by kartena / Proj4Leaflet.

Compatible with Leaflet version 1.0 (tested with 1.4.0), not compatible with version 0.x.

See demo (GRB-basiskaart Vlaanderen, Belgian Lambert 72, EPSG:31370).

Installation and usage

See demo.html.

API

Functions

Method Returns Description
projection(<String> code, <String> proj4def?, <Bounds> bounds?) Projection Projection factory.
crs(<String> code?, <crs options> options?) CRS CRS factory.

Crs Options

Option Type Default Description
infinite Boolean
bounds Bounds Bounds of the CRS, in projected coordinates.
wrapLat Number[]
wrapLng Number[]
projection Projection
proj4def String Proj.4 definition.
transformation Transformation To transform projected coordinates into pixel coordinates.
origin Number[] Tileset origin, in projected coordinates.
scale Number Scale for zoom level 0.
resolution Number Resolution (projection units per pixel) for zoom level 0.
scaleDenominator Number Scale denominator (WMTS) for zoom level 0.

About

Leaflet plugin: Proj4js interface.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published