From 91a01a03da60962e5459a5f4583108b510d9f3d0 Mon Sep 17 00:00:00 2001 From: Vladimir Agafonkin Date: Sat, 30 Nov 2013 01:22:10 +0200 Subject: [PATCH] move Projection namespace to Projection.LonLat.js --- build/deps.js | 3 +-- src/geo/projection/Projection.LonLat.js | 2 ++ src/geo/projection/Projection.js | 5 ----- 3 files changed, 3 insertions(+), 7 deletions(-) delete mode 100644 src/geo/projection/Projection.js diff --git a/build/deps.js b/build/deps.js index 48015b47..40a99742 100644 --- a/build/deps.js +++ b/build/deps.js @@ -11,9 +11,8 @@ var deps = { 'dom/DomUtil.js', 'geo/LatLng.js', 'geo/LatLngBounds.js', - 'geo/projection/Projection.js', - 'geo/projection/Projection.SphericalMercator.js', 'geo/projection/Projection.LonLat.js', + 'geo/projection/Projection.SphericalMercator.js', 'geo/crs/CRS.js', 'geo/crs/CRS.Simple.js', 'geo/crs/CRS.EPSG3857.js', diff --git a/src/geo/projection/Projection.LonLat.js b/src/geo/projection/Projection.LonLat.js index c106422d..06b1415b 100644 --- a/src/geo/projection/Projection.LonLat.js +++ b/src/geo/projection/Projection.LonLat.js @@ -2,6 +2,8 @@ * Simple equirectangular (Plate Carree) projection, used by CRS like EPSG:4326 and Simple. */ +L.Projection = {}; + L.Projection.LonLat = { project: function (latlng) { return new L.Point(latlng.lng, latlng.lat); diff --git a/src/geo/projection/Projection.js b/src/geo/projection/Projection.js deleted file mode 100644 index 84316b30..00000000 --- a/src/geo/projection/Projection.js +++ /dev/null @@ -1,5 +0,0 @@ -/* - * L.Projection contains various geographical projections used by CRS classes. - */ - -L.Projection = {};