diff --git a/CHANGELOG.md b/CHANGELOG.md index 05a3a082..0f2f3315 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,7 +4,7 @@ Leaflet Changelog ## 0.2 (master) * Added **WMS support** (`TileLayer.WMS`). - * Improved different projections support (through `crs` option in `Map`). + * Improved **different projections support**, having `EPSG:3857`, `EPSG:4326` and `EPSG:3395` out of the box (through `crs` option in `Map`). * Added `TileLayer.Canvas` for easy creation of canvas-based tile layers. * `Circle` is now zoom-dependent (with radius in meters); circle of a permanent size is now called `L.CircleMarker`. * Added `mouseover` and `mouseout` events to map, markers and paths; added map `mousemove` event. diff --git a/build/Makefile b/build/Makefile index 8b3ddcd0..4c6b699a 100644 --- a/build/Makefile +++ b/build/Makefile @@ -19,8 +19,14 @@ --js ../src/dom/transition/Transition.Timer.js \ --js ../src/geo/LatLng.js \ --js ../src/geo/LatLngBounds.js \ - --js ../src/geo/Projection.js \ - --js ../src/geo/CRS.js \ + --js ../src/geo/projection/Projection.js \ + --js ../src/geo/projection/Projection.SphericalMercator.js \ + --js ../src/geo/projection/Projection.LonLat.js \ + --js ../src/geo/projection/Projection.Mercator.js \ + --js ../src/geo/crs/CRS.js \ + --js ../src/geo/crs/CRS.EPSG3857.js \ + --js ../src/geo/crs/CRS.EPSG4326.js \ + --js ../src/geo/crs/CRS.EPSG3395.js \ --js ../src/layer/tile/TileLayer.js \ --js ../src/layer/tile/TileLayer.WMS.js \ --js ../src/layer/tile/TileLayer.Canvas.js \ diff --git a/build/build.bat b/build/build.bat index e6cc66bd..84e60d9e 100644 --- a/build/build.bat +++ b/build/build.bat @@ -19,8 +19,14 @@ java -jar ../lib/closure-compiler/compiler.jar ^ --js ../src/dom/transition/Transition.Timer.js ^ --js ../src/geo/LatLng.js ^ --js ../src/geo/LatLngBounds.js ^ ---js ../src/geo/Projection.js ^ ---js ../src/geo/CRS.js ^ +--js ../src/geo/projection/Projection.js ^ +--js ../src/geo/projection/Projection.SphericalMercator.js ^ +--js ../src/geo/projection/Projection.LonLat.js ^ +--js ../src/geo/projection/Projection.Mercator.js ^ +--js ../src/geo/crs/CRS.js ^ +--js ../src/geo/crs/CRS.EPSG3857.js ^ +--js ../src/geo/crs/CRS.EPSG4326.js ^ +--js ../src/geo/crs/CRS.EPSG3395.js ^ --js ../src/layer/tile/TileLayer.js ^ --js ../src/layer/tile/TileLayer.WMS.js ^ --js ../src/layer/tile/TileLayer.Canvas.js ^ diff --git a/build/deps.js b/build/deps.js index a47788bf..8c7e3407 100644 --- a/build/deps.js +++ b/build/deps.js @@ -8,16 +8,27 @@ var deps = { 'dom/DomUtil.js', 'geo/LatLng.js', 'geo/LatLngBounds.js', - 'geo/Projection.js', - 'geo/CRS.js', + 'geo/projection/Projection.js', + 'geo/projection/Projection.SphericalMercator.js', + 'geo/projection/Projection.LonLat.js', + 'geo/crs/CRS.js', + 'geo/crs/CRS.EPSG3857.js', + 'geo/crs/CRS.EPSG4326.js', 'geometry/Bounds.js', 'geometry/Point.js', 'geometry/Transformation.js', 'map/Map.js'], - desc: 'The core of the library, including OOP, events, DOM facilities, basic units, projections and the base Map class.' + desc: 'The core of the library, including OOP, events, DOM facilities, basic units, projections (EPSG:3857 and EPSG:4326) and the base Map class.' }, + EPSG3395: { + src: ['geo/projection/Projection.Mercator.js', + 'geo/crs/CRS.EPSG3395.js'], + desc: 'EPSG:3395 projection (used by some map providers).', + heading: 'Additional projections' + }, + TileLayer: { src: ['layer/tile/TileLayer.js'], desc: 'The base class for displaying tile layers on the map.', diff --git a/debug/include.js b/debug/include.js index 34f1131f..a8a89ba4 100644 --- a/debug/include.js +++ b/debug/include.js @@ -25,8 +25,16 @@ 'geo/LatLng.js', 'geo/LatLngBounds.js', - 'geo/Projection.js', - 'geo/CRS.js', + + 'geo/projection/Projection.js', + 'geo/projection/Projection.SphericalMercator.js', + 'geo/projection/Projection.LonLat.js', + 'geo/projection/Projection.Mercator.js', + + 'geo/crs/CRS.js', + 'geo/crs/CRS.EPSG3857.js', + 'geo/crs/CRS.EPSG4326.js', + 'geo/crs/CRS.EPSG3395.js', 'layer/tile/TileLayer.js', 'layer/tile/TileLayer.WMS.js', diff --git a/debug/map/wms-marble.html b/debug/map/wms-marble.html index 6b6147ed..e1044081 100644 --- a/debug/map/wms-marble.html +++ b/debug/map/wms-marble.html @@ -15,7 +15,7 @@