2010-09-29 20:22:49 +08:00
|
|
|
var deps = {
|
|
|
|
Core: {
|
|
|
|
src: ['Leaflet.js',
|
2011-08-11 21:40:33 +08:00
|
|
|
'core/Util.js',
|
2011-12-12 20:04:26 +08:00
|
|
|
'core/Class.js',
|
|
|
|
'core/Events.js',
|
|
|
|
'core/Browser.js',
|
2011-08-11 21:40:33 +08:00
|
|
|
'geometry/Point.js',
|
|
|
|
'geometry/Bounds.js',
|
|
|
|
'geometry/Transformation.js',
|
2010-09-29 20:22:49 +08:00
|
|
|
'dom/DomUtil.js',
|
|
|
|
'geo/LatLng.js',
|
|
|
|
'geo/LatLngBounds.js',
|
2011-05-31 17:36:05 +08:00
|
|
|
'geo/projection/Projection.js',
|
|
|
|
'geo/projection/Projection.SphericalMercator.js',
|
|
|
|
'geo/projection/Projection.LonLat.js',
|
|
|
|
'geo/crs/CRS.js',
|
2012-10-31 08:13:42 +08:00
|
|
|
'geo/crs/CRS.Simple.js',
|
2011-05-31 17:36:05 +08:00
|
|
|
'geo/crs/CRS.EPSG3857.js',
|
|
|
|
'geo/crs/CRS.EPSG4326.js',
|
2010-09-29 20:22:49 +08:00
|
|
|
'map/Map.js'],
|
2011-05-31 17:36:05 +08:00
|
|
|
desc: 'The core of the library, including OOP, events, DOM facilities, basic units, projections (EPSG:3857 and EPSG:4326) and the base Map class.'
|
2010-09-29 20:22:49 +08:00
|
|
|
},
|
2011-12-12 20:04:26 +08:00
|
|
|
|
|
|
|
|
2011-05-31 17:36:05 +08:00
|
|
|
EPSG3395: {
|
|
|
|
src: ['geo/projection/Projection.Mercator.js',
|
|
|
|
'geo/crs/CRS.EPSG3395.js'],
|
|
|
|
desc: 'EPSG:3395 projection (used by some map providers).',
|
|
|
|
heading: 'Additional projections'
|
|
|
|
},
|
2011-12-12 20:04:26 +08:00
|
|
|
|
2010-09-29 20:22:49 +08:00
|
|
|
TileLayer: {
|
2011-05-28 01:20:54 +08:00
|
|
|
src: ['layer/tile/TileLayer.js'],
|
2010-09-30 05:02:54 +08:00
|
|
|
desc: 'The base class for displaying tile layers on the map.',
|
|
|
|
heading: 'Layers'
|
2010-09-29 20:22:49 +08:00
|
|
|
},
|
2011-12-12 20:04:26 +08:00
|
|
|
|
2011-05-17 00:40:49 +08:00
|
|
|
TileLayerWMS: {
|
2011-05-28 01:20:54 +08:00
|
|
|
src: ['layer/tile/TileLayer.WMS.js'],
|
2011-05-31 05:37:48 +08:00
|
|
|
desc: 'WMS tile layer.',
|
2011-05-25 20:30:39 +08:00
|
|
|
deps: ['TileLayer']
|
2011-05-17 00:40:49 +08:00
|
|
|
},
|
2011-12-12 20:04:26 +08:00
|
|
|
|
2011-05-28 01:20:54 +08:00
|
|
|
TileLayerCanvas: {
|
|
|
|
src: ['layer/tile/TileLayer.Canvas.js'],
|
|
|
|
desc: 'Tile layer made from canvases (for custom drawing purposes).',
|
|
|
|
deps: ['TileLayer']
|
|
|
|
},
|
2011-12-12 20:04:26 +08:00
|
|
|
|
2010-09-29 20:22:49 +08:00
|
|
|
ImageOverlay: {
|
|
|
|
src: ['layer/ImageOverlay.js'],
|
|
|
|
desc: 'Used to display an image over a particular rectangular area of the map.'
|
|
|
|
},
|
2011-12-12 20:04:26 +08:00
|
|
|
|
2010-12-15 23:14:35 +08:00
|
|
|
Marker: {
|
2012-12-20 21:34:22 +08:00
|
|
|
src: ['layer/marker/Icon.js',
|
|
|
|
'layer/marker/Icon.Default.js',
|
|
|
|
'layer/marker/Marker.js'],
|
2010-12-15 23:14:35 +08:00
|
|
|
desc: 'Markers to put on the map.'
|
|
|
|
},
|
2011-12-12 20:04:26 +08:00
|
|
|
|
2012-02-16 19:00:45 +08:00
|
|
|
DivIcon: {
|
|
|
|
src: ['layer/marker/DivIcon.js'],
|
|
|
|
deps: ['Marker'],
|
|
|
|
desc: 'Lightweight div-based icon for markers.'
|
|
|
|
},
|
|
|
|
|
2011-01-10 22:21:27 +08:00
|
|
|
Popup: {
|
2012-12-20 21:34:22 +08:00
|
|
|
src: ['layer/Popup.js',
|
|
|
|
'layer/marker/Marker.Popup.js',
|
|
|
|
'map/ext/Map.Popup.js'],
|
2011-01-10 22:21:27 +08:00
|
|
|
deps: ['Marker'],
|
2011-04-08 19:47:27 +08:00
|
|
|
desc: 'Used to display the map popup (used mostly for binding HTML data to markers and paths on click).'
|
2011-01-10 22:21:27 +08:00
|
|
|
},
|
2011-12-12 20:04:26 +08:00
|
|
|
|
2011-06-10 19:47:28 +08:00
|
|
|
LayerGroup: {
|
|
|
|
src: ['layer/LayerGroup.js'],
|
|
|
|
desc: 'Allows grouping several layers to handle them as one.'
|
|
|
|
},
|
2011-12-12 20:04:26 +08:00
|
|
|
|
2011-06-10 19:47:28 +08:00
|
|
|
FeatureGroup: {
|
|
|
|
src: ['layer/FeatureGroup.js'],
|
|
|
|
deps: ['LayerGroup', 'Popup'],
|
|
|
|
desc: 'Extends LayerGroup with mouse events and bindPopup method shared between layers.'
|
|
|
|
},
|
2011-12-12 20:04:26 +08:00
|
|
|
|
|
|
|
|
2011-02-28 22:14:32 +08:00
|
|
|
Path: {
|
2012-12-20 21:34:22 +08:00
|
|
|
src: ['layer/vector/Path.js',
|
|
|
|
'layer/vector/Path.SVG.js',
|
|
|
|
'layer/vector/Path.Popup.js'],
|
2011-02-28 22:14:32 +08:00
|
|
|
desc: 'Vector rendering core (SVG-powered), enables overlaying the map with SVG paths.',
|
|
|
|
heading: 'Vector layers'
|
2011-02-26 22:36:01 +08:00
|
|
|
},
|
2011-12-12 20:04:26 +08:00
|
|
|
|
2011-02-28 22:14:32 +08:00
|
|
|
PathVML: {
|
2011-06-12 07:22:28 +08:00
|
|
|
src: ['layer/vector/Path.VML.js'],
|
2011-02-28 22:14:32 +08:00
|
|
|
desc: 'VML fallback for vector rendering core (IE 6-8).'
|
|
|
|
},
|
2011-12-12 20:04:26 +08:00
|
|
|
|
2012-02-13 18:14:48 +08:00
|
|
|
PathCanvas: {
|
|
|
|
src: ['layer/vector/canvas/Path.Canvas.js'],
|
|
|
|
deps: ['Path', 'Polyline', 'Polygon', 'Circle'],
|
|
|
|
desc: 'Canvas fallback for vector rendering core (makes it work on Android 2+).'
|
|
|
|
},
|
|
|
|
|
2011-02-28 22:14:32 +08:00
|
|
|
Polyline: {
|
2012-12-20 21:34:22 +08:00
|
|
|
src: ['geometry/LineUtil.js',
|
|
|
|
'layer/vector/Polyline.js'],
|
2011-02-28 22:14:32 +08:00
|
|
|
deps: ['Path'],
|
|
|
|
desc: 'Polyline overlays.'
|
|
|
|
},
|
2011-12-12 20:04:26 +08:00
|
|
|
|
2011-03-01 23:41:33 +08:00
|
|
|
Polygon: {
|
2012-12-20 21:34:22 +08:00
|
|
|
src: ['geometry/PolyUtil.js',
|
|
|
|
'layer/vector/Polygon.js'],
|
2011-03-01 23:41:33 +08:00
|
|
|
deps: ['Polyline'],
|
|
|
|
desc: 'Polygon overlays.'
|
|
|
|
},
|
|
|
|
|
2011-06-10 19:47:28 +08:00
|
|
|
MultiPoly: {
|
|
|
|
src: ['layer/vector/MultiPoly.js'],
|
|
|
|
deps: ['FeatureGroup', 'Polyline', 'Polygon'],
|
|
|
|
desc: 'MultiPolygon and MultyPolyline layers.'
|
2012-02-25 23:04:27 +08:00
|
|
|
},
|
|
|
|
|
|
|
|
Rectangle: {
|
|
|
|
src: ['layer/vector/Rectangle.js'],
|
|
|
|
deps: ['Polygon'],
|
|
|
|
desc: ['Rectangle overlays.']
|
2011-06-10 19:47:28 +08:00
|
|
|
},
|
|
|
|
|
2011-03-01 23:41:33 +08:00
|
|
|
Circle: {
|
|
|
|
src: ['layer/vector/Circle.js'],
|
|
|
|
deps: ['Path'],
|
2011-05-19 21:36:25 +08:00
|
|
|
desc: 'Circle overlays (with radius in meters).'
|
|
|
|
},
|
2011-12-12 20:04:26 +08:00
|
|
|
|
2011-05-19 21:36:25 +08:00
|
|
|
CircleMarker: {
|
|
|
|
src: ['layer/vector/CircleMarker.js'],
|
|
|
|
deps: ['Circle'],
|
|
|
|
desc: 'Circle overlays with a constant pixel radius.'
|
2011-03-01 23:41:33 +08:00
|
|
|
},
|
2011-12-12 20:04:26 +08:00
|
|
|
|
2012-02-13 18:14:48 +08:00
|
|
|
VectorsCanvas: {
|
|
|
|
src: ['layer/vector/canvas/Polyline.Canvas.js',
|
2011-08-11 21:40:33 +08:00
|
|
|
'layer/vector/canvas/Polygon.Canvas.js',
|
|
|
|
'layer/vector/canvas/Circle.Canvas.js'],
|
2012-02-13 18:14:48 +08:00
|
|
|
deps: ['PathCanvas', 'Polyline', 'Polygon', 'Circle'],
|
|
|
|
desc: 'Canvas fallback for vector layers (polygons, polylines, circles)'
|
2011-08-11 21:40:33 +08:00
|
|
|
},
|
2011-12-12 20:04:26 +08:00
|
|
|
|
2011-06-10 19:47:28 +08:00
|
|
|
GeoJSON: {
|
|
|
|
src: ['layer/GeoJSON.js'],
|
|
|
|
deps: ['Marker', 'MultiPoly', 'FeatureGroup'],
|
|
|
|
desc: 'GeoJSON layer, parses the data and adds corresponding layers above.'
|
|
|
|
},
|
2011-03-01 23:41:33 +08:00
|
|
|
|
2011-12-12 20:04:26 +08:00
|
|
|
|
2010-09-29 20:22:49 +08:00
|
|
|
MapDrag: {
|
2010-09-30 05:02:54 +08:00
|
|
|
src: ['dom/DomEvent.js',
|
|
|
|
'dom/Draggable.js',
|
2011-12-14 19:12:54 +08:00
|
|
|
'core/Handler.js',
|
|
|
|
'map/handler/Map.Drag.js'],
|
2011-04-12 04:43:23 +08:00
|
|
|
desc: 'Makes the map draggable (by mouse or touch).',
|
2010-09-30 05:02:54 +08:00
|
|
|
heading: 'Interaction'
|
2010-09-29 20:22:49 +08:00
|
|
|
},
|
2011-12-12 20:04:26 +08:00
|
|
|
|
2010-09-29 20:22:49 +08:00
|
|
|
MouseZoom: {
|
2010-09-30 05:02:54 +08:00
|
|
|
src: ['dom/DomEvent.js',
|
2011-12-14 19:12:54 +08:00
|
|
|
'core/Handler.js',
|
|
|
|
'map/handler/Map.DoubleClickZoom.js',
|
|
|
|
'map/handler/Map.ScrollWheelZoom.js'],
|
2010-09-29 20:22:49 +08:00
|
|
|
desc: 'Scroll wheel zoom and double click zoom on the map.'
|
|
|
|
},
|
2011-12-12 20:04:26 +08:00
|
|
|
|
2010-09-29 20:22:49 +08:00
|
|
|
TouchZoom: {
|
2010-09-30 05:02:54 +08:00
|
|
|
src: ['dom/DomEvent.js',
|
2011-04-12 21:53:07 +08:00
|
|
|
'dom/DomEvent.DoubleTap.js',
|
2012-09-28 11:37:18 +08:00
|
|
|
'dom/DomEvent.MsTouch.js',
|
2011-12-14 19:12:54 +08:00
|
|
|
'core/Handler.js',
|
|
|
|
'map/handler/Map.TouchZoom.js'],
|
2011-04-01 22:58:43 +08:00
|
|
|
deps: ['MapAnimationZoom'],
|
2012-09-28 11:37:18 +08:00
|
|
|
desc: 'Enables smooth touch zooming on iOS and IE10 and double tap on iOS/IE10/Android.'
|
2010-09-29 20:22:49 +08:00
|
|
|
},
|
2011-12-12 20:04:26 +08:00
|
|
|
|
2011-12-14 19:12:54 +08:00
|
|
|
BoxZoom: {
|
|
|
|
src: ['map/handler/Map.BoxZoom.js'],
|
2011-03-22 01:09:43 +08:00
|
|
|
desc: 'Enables zooming to bounding box by shift-dragging the map.'
|
|
|
|
},
|
2011-12-12 20:04:26 +08:00
|
|
|
|
2012-05-04 01:00:30 +08:00
|
|
|
Keyboard: {
|
|
|
|
src: ['map/handler/Map.Keyboard.js'],
|
2012-07-27 20:10:17 +08:00
|
|
|
desc: 'Enables keyboard pan/zoom when the map is focused.'
|
2012-05-04 01:00:30 +08:00
|
|
|
},
|
|
|
|
|
2011-04-12 04:43:23 +08:00
|
|
|
MarkerDrag: {
|
2011-12-14 19:12:54 +08:00
|
|
|
src: ['layer/marker/Marker.Drag.js'],
|
2012-02-16 20:15:47 +08:00
|
|
|
deps: ['Marker'],
|
2011-04-12 04:43:23 +08:00
|
|
|
desc: 'Makes markers draggable (by mouse or touch).'
|
|
|
|
},
|
2011-12-12 20:04:26 +08:00
|
|
|
|
2012-02-16 20:15:47 +08:00
|
|
|
PolyEdit: {
|
|
|
|
src: ['layer/vector/Polyline.Edit.js'],
|
|
|
|
deps: ['Polyline', 'DivIcon'],
|
|
|
|
desc: 'Polyline and polygon editing.'
|
|
|
|
},
|
|
|
|
|
2011-12-12 20:04:26 +08:00
|
|
|
|
2011-04-11 20:49:15 +08:00
|
|
|
ControlZoom: {
|
2011-12-12 20:04:26 +08:00
|
|
|
src: ['control/Control.js',
|
|
|
|
'map/ext/Map.Control.js',
|
2011-04-11 20:49:15 +08:00
|
|
|
'control/Control.Zoom.js'],
|
|
|
|
heading: 'Controls',
|
|
|
|
desc: 'Basic zoom control with two buttons (zoom in / zoom out).'
|
|
|
|
},
|
2011-12-12 20:04:26 +08:00
|
|
|
|
2011-08-11 21:40:33 +08:00
|
|
|
ControlAttrib: {
|
2011-12-12 20:04:26 +08:00
|
|
|
src: ['control/Control.js',
|
|
|
|
'map/ext/Map.Control.js',
|
2011-04-15 16:56:48 +08:00
|
|
|
'control/Control.Attribution.js'],
|
|
|
|
desc: 'Attribution control.'
|
|
|
|
},
|
2011-12-12 20:04:26 +08:00
|
|
|
|
2012-02-25 23:04:27 +08:00
|
|
|
ControlScale: {
|
|
|
|
src: ['control/Control.js',
|
|
|
|
'map/ext/Map.Control.js',
|
|
|
|
'control/Control.Scale.js'],
|
|
|
|
desc: 'Scale control.'
|
|
|
|
},
|
|
|
|
|
2011-08-11 21:40:33 +08:00
|
|
|
ControlLayers: {
|
2011-12-12 20:04:26 +08:00
|
|
|
src: ['control/Control.js',
|
|
|
|
'map/ext/Map.Control.js',
|
2011-08-11 21:40:33 +08:00
|
|
|
'control/Control.Layers.js'],
|
|
|
|
desc: 'Layer Switcher control.'
|
|
|
|
},
|
2011-12-12 20:04:26 +08:00
|
|
|
|
|
|
|
|
2012-08-10 23:37:21 +08:00
|
|
|
AnimationPan: {
|
|
|
|
src: [
|
|
|
|
'dom/DomEvent.js',
|
|
|
|
'dom/PosAnimation.js',
|
|
|
|
'map/anim/Map.PanAnimation.js'
|
|
|
|
],
|
|
|
|
deps: ['AnimationPan'],
|
|
|
|
desc: 'Core panning animation support.'
|
2010-09-29 20:22:49 +08:00
|
|
|
},
|
2011-12-12 20:04:26 +08:00
|
|
|
|
|
|
|
AnimationTimer: {
|
2012-08-10 23:37:21 +08:00
|
|
|
src: ['dom/PosAnimation.Timer.js'],
|
2011-12-12 20:04:26 +08:00
|
|
|
deps: ['AnimationPan'],
|
2012-08-10 23:37:21 +08:00
|
|
|
desc: 'Timer-based pan animation fallback for browsers that don\'t support CSS3 transitions.'
|
2011-01-16 06:01:16 +08:00
|
|
|
},
|
2011-12-12 20:04:26 +08:00
|
|
|
|
|
|
|
AnimationZoom: {
|
2011-12-14 19:12:54 +08:00
|
|
|
src: ['map/anim/Map.ZoomAnimation.js'],
|
2012-08-10 23:37:21 +08:00
|
|
|
deps: ['AnimationPan'],
|
|
|
|
desc: 'Smooth zooming animation. Works only on browsers that support CSS3 Transitions.'
|
2010-09-29 20:22:49 +08:00
|
|
|
},
|
2011-12-12 20:04:26 +08:00
|
|
|
|
|
|
|
Geolocation: {
|
2011-01-21 17:55:08 +08:00
|
|
|
src: ['map/ext/Map.Geolocation.js'],
|
2010-09-30 05:02:54 +08:00
|
|
|
desc: 'Adds Map#locate method and related events to make geolocation easier.',
|
|
|
|
heading: 'Misc'
|
2010-09-29 20:22:49 +08:00
|
|
|
}
|
2011-12-12 04:45:49 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
if (typeof exports !== 'undefined') {
|
|
|
|
exports.deps = deps;
|
2011-12-12 20:04:26 +08:00
|
|
|
}
|