UNPKG

leaflet

Version:

JavaScript library for mobile-friendly interactive maps

14 lines (11 loc) 296 B
/* * 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); } };