Leaflet/build/deps.js

273 lines
7.0 KiB
JavaScript
Raw Permalink 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.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',
'geo/crs/CRS.EPSG3857.js',
'geo/crs/CRS.EPSG4326.js',
'map/Map.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
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'
},
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
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
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: {
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'],
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
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: {
2012-12-20 21:34:22 +08:00
src: ['layer/vector/Path.js',
'layer/vector/Path.SVG.js',
'layer/vector/Path.Popup.js'],
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
PathVML: {
src: ['layer/vector/Path.VML.js'],
desc: 'VML fallback for vector rendering core (IE 6-8).'
},
2011-12-12 20:04:26 +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+).'
},
Polyline: {
2012-12-20 21:34:22 +08:00
src: ['geometry/LineUtil.js',
'layer/vector/Polyline.js'],
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.'
},
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-03-01 23:41:33 +08:00
Circle: {
src: ['layer/vector/Circle.js'],
deps: ['Path'],
desc: 'Circle overlays (with radius in meters).'
},
2011-12-12 20:04:26 +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
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'],
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
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
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',
'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'],
desc: 'Enables smooth touch zooming on iOS and IE10 and double tap 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'],
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
PolyEdit: {
src: ['layer/vector/Polyline.Edit.js'],
deps: ['Polyline', 'DivIcon'],
desc: 'Polyline and polygon editing.'
},
2011-12-12 20:04:26 +08:00
ControlZoom: {
2011-12-12 20:04:26 +08:00
src: ['control/Control.js',
'map/ext/Map.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',
'map/ext/Map.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',
'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
AnimationPan: {
src: [
'dom/DomEvent.js',
'dom/PosAnimation.js',
'map/anim/Map.PanAnimation.js'
],
deps: ['AnimationPan'],
desc: 'Core panning animation support.'
},
2011-12-12 20:04:26 +08:00
AnimationTimer: {
src: ['dom/PosAnimation.Timer.js'],
2011-12-12 20:04:26 +08:00
deps: ['AnimationPan'],
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'],
deps: ['AnimationPan'],
desc: 'Smooth zooming animation. Works only on browsers that support CSS3 Transitions.'
},
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'
}
};
if (typeof exports !== 'undefined') {
exports.deps = deps;
2011-12-12 20:04:26 +08:00
}