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.LonLat.js',
|
2013-11-30 07:22:10 +08:00
|
|
|
'geo/projection/Projection.SphericalMercator.js',
|
2011-05-31 17:36:05 +08:00
|
|
|
'geo/crs/CRS.js',
|
2012-10-31 08:13:42 +08:00
|
|
|
'geo/crs/CRS.Simple.js',
|
2014-01-02 21:42:14 +08:00
|
|
|
'geo/crs/CRS.Earth.js',
|
2011-05-31 17:36:05 +08:00
|
|
|
'geo/crs/CRS.EPSG3857.js',
|
|
|
|
'geo/crs/CRS.EPSG4326.js',
|
2013-12-06 19:56:38 +08:00
|
|
|
'map/Map.js',
|
2016-09-30 23:02:46 +08:00
|
|
|
'layer/Layer.js',
|
|
|
|
'dom/DomEvent.js',
|
|
|
|
'dom/PosAnimation.js'
|
2013-12-06 19:56:38 +08:00
|
|
|
],
|
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
|
|
|
|
2013-11-26 00:41:27 +08:00
|
|
|
GridLayer: {
|
|
|
|
src: ['layer/tile/GridLayer.js'],
|
2013-11-28 00:28:36 +08:00
|
|
|
desc: 'Used as base class for grid-like layers like TileLayer.',
|
2013-11-26 00:41:27 +08:00
|
|
|
heading: 'Layers'
|
|
|
|
},
|
|
|
|
|
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.',
|
2013-11-26 00:41:27 +08:00
|
|
|
deps: ['GridLayer']
|
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
|
|
|
|
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: {
|
2013-12-21 19:46:38 +08:00
|
|
|
src: [
|
2016-07-08 19:48:32 +08:00
|
|
|
'layer/DivOverlay.js',
|
2016-09-28 01:02:51 +08:00
|
|
|
'layer/Popup.js'
|
2013-12-21 19:46:38 +08:00
|
|
|
],
|
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
|
|
|
|
2016-07-08 19:48:32 +08:00
|
|
|
Tooltip: {
|
2015-10-18 04:42:17 +08:00
|
|
|
src: [
|
2016-09-28 01:02:51 +08:00
|
|
|
'layer/Tooltip.js'
|
2015-10-18 04:42:17 +08:00
|
|
|
],
|
|
|
|
deps: ['Popup', 'Marker'],
|
2016-07-08 19:48:32 +08:00
|
|
|
desc: 'Used to display the map tooltip (used mostly for binding short descriptions to markers and paths on mouseover).'
|
2015-10-18 04:42:17 +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
|
|
|
|
2013-12-14 00:11:52 +08:00
|
|
|
|
|
|
|
Path: {
|
2013-12-12 22:41:46 +08:00
|
|
|
src: [
|
2013-12-14 00:11:52 +08:00
|
|
|
'layer/vector/Renderer.js',
|
2013-12-21 19:46:38 +08:00
|
|
|
'layer/vector/Path.js'
|
2013-12-13 04:01:57 +08:00
|
|
|
],
|
2013-12-14 00:11:52 +08:00
|
|
|
desc: 'Vector rendering core.',
|
|
|
|
heading: 'Vector layers'
|
|
|
|
},
|
|
|
|
|
|
|
|
Polyline: {
|
|
|
|
src: ['geometry/LineUtil.js',
|
|
|
|
'layer/vector/Polyline.js'],
|
|
|
|
deps: ['Path'],
|
|
|
|
desc: 'Polyline overlays.'
|
|
|
|
},
|
|
|
|
|
|
|
|
Polygon: {
|
|
|
|
src: ['geometry/PolyUtil.js',
|
|
|
|
'layer/vector/Polygon.js'],
|
|
|
|
deps: ['Polyline'],
|
|
|
|
desc: 'Polygon overlays.'
|
|
|
|
},
|
|
|
|
|
|
|
|
Rectangle: {
|
|
|
|
src: ['layer/vector/Rectangle.js'],
|
|
|
|
deps: ['Polygon'],
|
|
|
|
desc: ['Rectangle overlays.']
|
|
|
|
},
|
|
|
|
|
|
|
|
CircleMarker: {
|
|
|
|
src: ['layer/vector/CircleMarker.js'],
|
2013-12-14 13:17:18 +08:00
|
|
|
deps: ['Path'],
|
2013-12-14 00:11:52 +08:00
|
|
|
desc: 'Circle overlays with a constant pixel radius.'
|
|
|
|
},
|
|
|
|
|
2013-12-14 13:17:18 +08:00
|
|
|
Circle: {
|
|
|
|
src: ['layer/vector/Circle.js'],
|
|
|
|
deps: ['CircleMarker'],
|
|
|
|
desc: 'Circle overlays (with radius in meters).'
|
|
|
|
},
|
|
|
|
|
2013-12-14 00:11:52 +08:00
|
|
|
SVG: {
|
|
|
|
src: ['layer/vector/SVG.js'],
|
|
|
|
deps: ['Path'],
|
|
|
|
desc: 'SVG backend for vector layers.'
|
|
|
|
},
|
|
|
|
|
|
|
|
VML: {
|
|
|
|
src: ['layer/vector/SVG.VML.js'],
|
|
|
|
deps: ['SVG'],
|
|
|
|
desc: 'VML fallback for vector layers in IE7-8.'
|
|
|
|
},
|
|
|
|
|
|
|
|
Canvas: {
|
|
|
|
src: ['layer/vector/Canvas.js'],
|
2015-06-19 05:57:22 +08:00
|
|
|
deps: ['CircleMarker', 'Path', 'Polygon', 'Polyline'],
|
2013-12-14 00:11:52 +08:00
|
|
|
desc: 'Canvas backend for vector layers.'
|
|
|
|
},
|
|
|
|
|
|
|
|
GeoJSON: {
|
|
|
|
src: ['layer/GeoJSON.js'],
|
2013-12-14 01:32:26 +08:00
|
|
|
deps: ['Polygon', 'Circle', 'CircleMarker', 'Marker', 'FeatureGroup'],
|
2013-12-14 00:11:52 +08:00
|
|
|
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',
|
2013-10-04 10:07:30 +08:00
|
|
|
'dom/DomEvent.Pointer.js',
|
2011-12-14 19:12:54 +08:00
|
|
|
'core/Handler.js',
|
2013-06-25 06:17:25 +08:00
|
|
|
'map/handler/Map.TouchZoom.js',
|
|
|
|
'map/handler/Map.Tap.js'],
|
2013-04-09 18:51:44 +08:00
|
|
|
deps: ['AnimationZoom'],
|
2013-06-25 06:17:25 +08:00
|
|
|
desc: 'Enables smooth touch zoom / tap / longhold / doubletap 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'],
|
2015-06-19 05:57:22 +08:00
|
|
|
deps: ['MouseZoom'],
|
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
|
|
|
|
2011-04-11 20:49:15 +08:00
|
|
|
ControlZoom: {
|
2011-12-12 20:04:26 +08:00
|
|
|
src: ['control/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',
|
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',
|
|
|
|
'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',
|
2011-08-11 21:40:33 +08:00
|
|
|
'control/Control.Layers.js'],
|
|
|
|
desc: 'Layer Switcher control.'
|
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
|
|
|
}
|