Leaflet/build/deps.js

241 lines
5.8 KiB
JavaScript
Raw Normal View History

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',
'dom/DomUtil.js',
'geo/LatLng.js',
'geo/LatLngBounds.js',
'geo/projection/Projection.LonLat.js',
'geo/projection/Projection.SphericalMercator.js',
'geo/crs/CRS.js',
2012-10-31 08:13:42 +08:00
'geo/crs/CRS.Simple.js',
'geo/crs/CRS.Earth.js',
'geo/crs/CRS.EPSG3857.js',
'geo/crs/CRS.EPSG4326.js',
'map/Map.js',
2016-09-30 23:02:46 +08:00
'layer/Layer.js',
'dom/DomEvent.js',
'dom/PosAnimation.js'
],
desc: 'The core of the library, including OOP, events, DOM facilities, basic units, projections (EPSG:3857 and EPSG:4326) and the base Map class.'
},
2011-12-12 20:04:26 +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
GridLayer: {
src: ['layer/tile/GridLayer.js'],
desc: 'Used as base class for grid-like layers like TileLayer.',
heading: 'Layers'
},
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.',
deps: ['GridLayer']
},
2011-12-12 20:04:26 +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.',
deps: ['TileLayer']
},
2011-12-12 20:04:26 +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
DivIcon: {
src: ['layer/marker/DivIcon.js'],
deps: ['Marker'],
desc: 'Lightweight div-based icon for markers.'
},
2011-01-10 22:21:27 +08:00
Popup: {
src: [
'layer/DivOverlay.js',
'layer/Popup.js'
],
2011-01-10 22:21:27 +08:00
deps: ['Marker'],
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
Tooltip: {
2015-10-18 04:42:17 +08:00
src: [
'layer/Tooltip.js'
2015-10-18 04:42:17 +08:00
],
deps: ['Popup', 'Marker'],
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
},
LayerGroup: {
src: ['layer/LayerGroup.js'],
desc: 'Allows grouping several layers to handle them as one.'
},
2011-12-12 20:04:26 +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
Path: {
2013-12-12 22:41:46 +08:00
src: [
'layer/vector/Renderer.js',
'layer/vector/Path.js'
2013-12-13 04:01:57 +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'],
deps: ['Path'],
desc: 'Circle overlays with a constant pixel radius.'
},
Circle: {
src: ['layer/vector/Circle.js'],
deps: ['CircleMarker'],
desc: 'Circle overlays (with radius in meters).'
},
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'],
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'],
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
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'],
desc: 'Makes the map draggable (by mouse or touch).',
2010-09-30 05:02:54 +08:00
heading: 'Interaction'
},
2011-12-12 20:04:26 +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'],
desc: 'Scroll wheel zoom and double click zoom on the map.'
},
2011-12-12 20:04:26 +08:00
TouchZoom: {
2010-09-30 05:02:54 +08:00
src: ['dom/DomEvent.js',
'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',
'map/handler/Map.TouchZoom.js',
'map/handler/Map.Tap.js'],
deps: ['AnimationZoom'],
desc: 'Enables smooth touch zoom / tap / longhold / doubletap on iOS, IE10, Android.'
},
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
Keyboard: {
src: ['map/handler/Map.Keyboard.js'],
desc: 'Enables keyboard pan/zoom when the map is focused.'
},
MarkerDrag: {
2011-12-14 19:12:54 +08:00
src: ['layer/marker/Marker.Drag.js'],
deps: ['Marker'],
desc: 'Makes markers draggable (by mouse or touch).'
},
2011-12-12 20:04:26 +08:00
ControlZoom: {
2011-12-12 20:04:26 +08:00
src: ['control/Control.js',
'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',
'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.'
}
};
if (typeof exports !== 'undefined') {
exports.deps = deps;
2011-12-12 20:04:26 +08:00
}