UNPKG
leaflet
Version:
alpha (2.0.0-alpha.1)
beta (1.8.0-beta.3)
latest (1.9.4)
2.0.0-alpha.1
2.0.0-alpha
1.9.4
1.9.3
1.9.2
1.9.1
1.9.0
1.8.0
1.8.0-beta.3
1.8.0-beta.2
1.8.0-beta.1
1.8.0-beta.0
1.8.0-alpha.0
1.7.1
1.7.0
1.6.0
1.5.1
1.5.0
1.4.0
1.3.4
1.3.3
1.3.2
1.3.1
1.3.0
1.2.0
1.1.0
1.0.3
1.0.2
1.0.1
1.0.0
1.0.0-rc.3
1.0.0-rc.2
1.0.0-rc.1
1.0.0-beta.2
1.0.0-beta.1
0.7.7
0.7.5
0.7.4
0.7.3
0.7.2
0.7.1
0.7.0
0.6.4
0.6.3
0.6.2
0.6.1
0.6.0
0.5.1
JavaScript library for mobile-friendly interactive maps
github.com/Leaflet/Leaflet
Leaflet/Leaflet
leaflet
/
src
/
geo
/
projection
/
Projection.LonLat.js
14 lines
(11 loc)
•
296 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* * Simple equirectangular (Plate Carree) projection, used by CRS like EPSG:4326 and Simple. */
L.
Projection
.
LonLat
= {
project
:
function
(
latlng
) {
return
new
L.
Point
(latlng.
lng
, latlng.
lat
); },
unproject
:
function
(
point
) {
return
new
L.
LatLng
(point.
y
, point.
x
); } };