2015-03-09 08:58:37 -05:00
|
|
|
var deps = {
|
|
|
|
Core: {
|
|
|
|
src: ['Leaflet.js',
|
2015-07-16 05:55:53 -05:00
|
|
|
'core/Log.js',
|
2015-03-09 08:58:37 -05:00
|
|
|
'core/Util.js',
|
|
|
|
'core/Class.js',
|
|
|
|
'core/Events.js',
|
2015-09-01 09:53:44 -05:00
|
|
|
'core/Socket.js',
|
2015-03-09 08:58:37 -05:00
|
|
|
'core/Browser.js',
|
|
|
|
'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',
|
|
|
|
'geo/crs/CRS.Simple.js',
|
|
|
|
'geo/crs/CRS.Earth.js',
|
|
|
|
'geo/crs/CRS.EPSG3857.js',
|
|
|
|
'geo/crs/CRS.EPSG4326.js',
|
|
|
|
'map/Map.js',
|
|
|
|
'layer/Layer.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.'
|
|
|
|
},
|
|
|
|
|
|
|
|
EPSG3395: {
|
|
|
|
src: ['geo/projection/Projection.Mercator.js',
|
|
|
|
'geo/crs/CRS.EPSG3395.js'],
|
|
|
|
desc: 'EPSG:3395 projection (used by some map providers).',
|
|
|
|
heading: 'Additional projections'
|
|
|
|
},
|
|
|
|
|
|
|
|
GridLayer: {
|
|
|
|
src: ['layer/tile/GridLayer.js'],
|
|
|
|
desc: 'Used as base class for grid-like layers like TileLayer.',
|
|
|
|
heading: 'Layers'
|
|
|
|
},
|
|
|
|
|
|
|
|
TileLayer: {
|
|
|
|
src: ['layer/tile/TileLayer.js'],
|
|
|
|
desc: 'The base class for displaying tile layers on the map.',
|
|
|
|
deps: ['GridLayer']
|
|
|
|
},
|
|
|
|
|
|
|
|
TileLayerWMS: {
|
|
|
|
src: ['layer/tile/TileLayer.WMS.js'],
|
|
|
|
desc: 'WMS tile layer.',
|
|
|
|
deps: ['TileLayer']
|
2015-09-02 02:47:19 -05:00
|
|
|
},
|
|
|
|
|
|
|
|
WriterTileLayer: {
|
|
|
|
src: ['layer/tile/WriterTileLayer.js'],
|
|
|
|
desc: 'Writer tile layer.',
|
|
|
|
deps: ['TileLayer']
|
|
|
|
},
|
|
|
|
|
|
|
|
ImpressTileLayer: {
|
|
|
|
src: ['layer/tile/ImpressTileLayer.js'],
|
|
|
|
desc: 'Impress tile layer.',
|
|
|
|
deps: ['TileLayer']
|
|
|
|
},
|
|
|
|
|
2015-09-02 06:27:29 -05:00
|
|
|
CalcTileLayer: {
|
2015-09-02 02:47:19 -05:00
|
|
|
src: ['layer/tile/CalcTileLayer.js'],
|
|
|
|
desc: 'Calc tile layer.',
|
|
|
|
deps: ['TileLayer']
|
2015-03-09 08:58:37 -05:00
|
|
|
},
|
|
|
|
|
|
|
|
ImageOverlay: {
|
|
|
|
src: ['layer/ImageOverlay.js'],
|
|
|
|
desc: 'Used to display an image over a particular rectangular area of the map.'
|
|
|
|
},
|
|
|
|
|
|
|
|
Marker: {
|
|
|
|
src: ['layer/marker/Icon.js',
|
|
|
|
'layer/marker/Icon.Default.js',
|
2015-06-02 22:38:00 -05:00
|
|
|
'layer/marker/Marker.js',
|
|
|
|
'layer/marker/Cursor.js'],
|
2015-03-09 08:58:37 -05:00
|
|
|
desc: 'Markers to put on the map.'
|
|
|
|
},
|
|
|
|
|
|
|
|
DivIcon: {
|
|
|
|
src: ['layer/marker/DivIcon.js'],
|
|
|
|
deps: ['Marker'],
|
|
|
|
desc: 'Lightweight div-based icon for markers.'
|
|
|
|
},
|
|
|
|
|
|
|
|
Popup: {
|
|
|
|
src: [
|
|
|
|
'layer/Popup.js',
|
|
|
|
'layer/Layer.Popup.js',
|
|
|
|
'layer/marker/Marker.Popup.js'
|
|
|
|
],
|
|
|
|
deps: ['Marker'],
|
|
|
|
desc: 'Used to display the map popup (used mostly for binding HTML data to markers and paths on click).'
|
|
|
|
},
|
|
|
|
|
|
|
|
LayerGroup: {
|
|
|
|
src: ['layer/LayerGroup.js'],
|
|
|
|
desc: 'Allows grouping several layers to handle them as one.'
|
|
|
|
},
|
|
|
|
|
|
|
|
FeatureGroup: {
|
|
|
|
src: ['layer/FeatureGroup.js'],
|
|
|
|
deps: ['LayerGroup', 'Popup'],
|
|
|
|
desc: 'Extends LayerGroup with mouse events and bindPopup method shared between layers.'
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
Path: {
|
|
|
|
src: [
|
|
|
|
'layer/vector/Renderer.js',
|
|
|
|
'layer/vector/Path.js'
|
|
|
|
],
|
|
|
|
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'],
|
|
|
|
deps: ['Path'],
|
|
|
|
desc: 'Canvas backend for vector layers.'
|
|
|
|
},
|
|
|
|
|
|
|
|
GeoJSON: {
|
|
|
|
src: ['layer/GeoJSON.js'],
|
|
|
|
deps: ['Polygon', 'Circle', 'CircleMarker', 'Marker', 'FeatureGroup'],
|
|
|
|
desc: 'GeoJSON layer, parses the data and adds corresponding layers above.'
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
MapDrag: {
|
|
|
|
src: ['dom/DomEvent.js',
|
|
|
|
'dom/Draggable.js',
|
|
|
|
'core/Handler.js',
|
|
|
|
'map/handler/Map.Drag.js'],
|
|
|
|
desc: 'Makes the map draggable (by mouse or touch).',
|
|
|
|
heading: 'Interaction'
|
|
|
|
},
|
|
|
|
|
2015-07-24 04:04:18 -05:00
|
|
|
MapScroll: {
|
|
|
|
src: ['dom/DomEvent.js',
|
|
|
|
'core/Handler.js',
|
|
|
|
'map/handler/Map.Scroll.js'],
|
|
|
|
desc: 'Handles the mouse wheel scroll',
|
|
|
|
},
|
|
|
|
|
2015-03-09 08:58:37 -05:00
|
|
|
MouseZoom: {
|
|
|
|
src: ['dom/DomEvent.js',
|
|
|
|
'core/Handler.js',
|
2015-07-24 04:04:18 -05:00
|
|
|
'map/handler/Map.DoubleClickZoom.js'],
|
2015-03-09 08:58:37 -05:00
|
|
|
desc: 'Scroll wheel zoom and double click zoom on the map.'
|
|
|
|
},
|
|
|
|
|
|
|
|
TouchZoom: {
|
|
|
|
src: ['dom/DomEvent.js',
|
|
|
|
'dom/DomEvent.DoubleTap.js',
|
|
|
|
'dom/DomEvent.Pointer.js',
|
|
|
|
'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.'
|
|
|
|
},
|
|
|
|
|
|
|
|
BoxZoom: {
|
|
|
|
src: ['map/handler/Map.BoxZoom.js'],
|
|
|
|
desc: 'Enables zooming to bounding box by shift-dragging the map.'
|
|
|
|
},
|
|
|
|
|
|
|
|
Keyboard: {
|
|
|
|
src: ['map/handler/Map.Keyboard.js'],
|
2015-07-16 08:15:30 -05:00
|
|
|
desc: 'Handles keyboard interaction with the document.'
|
|
|
|
},
|
|
|
|
|
|
|
|
Mouse: {
|
|
|
|
src: ['map/handler/Map.Mouse.js'],
|
|
|
|
desc: 'Handles mouse interaction with the document.'
|
2015-03-09 08:58:37 -05:00
|
|
|
},
|
|
|
|
|
|
|
|
MarkerDrag: {
|
|
|
|
src: ['layer/marker/Marker.Drag.js'],
|
|
|
|
deps: ['Marker'],
|
|
|
|
desc: 'Makes markers draggable (by mouse or touch).'
|
|
|
|
},
|
|
|
|
|
|
|
|
ControlZoom: {
|
|
|
|
src: ['control/Control.js',
|
|
|
|
'control/Control.Zoom.js'],
|
|
|
|
heading: 'Controls',
|
|
|
|
desc: 'Basic zoom control with two buttons (zoom in / zoom out).'
|
|
|
|
},
|
|
|
|
|
2015-05-11 08:28:43 -05:00
|
|
|
ControlSearch: {
|
2015-05-06 04:39:03 -05:00
|
|
|
src: ['control/Control.js',
|
|
|
|
'control/Control.Search.js'],
|
|
|
|
heading: 'Controls',
|
|
|
|
desc: 'Search control with two buttons (previous / next).'
|
2015-05-11 08:59:47 -05:00
|
|
|
},
|
|
|
|
|
|
|
|
ControlParts: {
|
|
|
|
src: ['control/Control.js',
|
|
|
|
'control/Control.Parts.js'],
|
|
|
|
heading: 'Controls',
|
|
|
|
desc: 'Parts control with two buttons (previous / next).'
|
2015-05-06 04:39:03 -05:00
|
|
|
},
|
|
|
|
|
2015-08-17 02:41:01 -05:00
|
|
|
ControlPartsPreview: {
|
|
|
|
src: ['control/Control.js',
|
|
|
|
'control/Control.PartsPreview.js'],
|
|
|
|
heading: 'Controls',
|
|
|
|
desc: 'Parts preview sidebar'
|
|
|
|
},
|
|
|
|
|
|
|
|
ControlTabs: {
|
|
|
|
src: ['control/Control.js',
|
|
|
|
'control/Control.Tabs.js'],
|
|
|
|
heading: 'Controls',
|
|
|
|
desc: 'Tabs for switching sheets'
|
|
|
|
},
|
|
|
|
|
2015-07-10 04:20:46 -05:00
|
|
|
ControlPermissionSwitch: {
|
2015-05-26 12:47:45 -05:00
|
|
|
src: ['control/Control.js',
|
2015-07-10 04:20:46 -05:00
|
|
|
'control/Control.Permission.js'],
|
2015-05-26 12:47:45 -05:00
|
|
|
heading: 'Controls',
|
2015-07-10 04:20:46 -05:00
|
|
|
desc: 'Switches edit, view and readOnly modes'
|
2015-05-26 12:47:45 -05:00
|
|
|
},
|
|
|
|
|
2015-07-13 07:50:02 -05:00
|
|
|
ControlSelection: {
|
|
|
|
src: ['control/Control.js',
|
|
|
|
'control/Control.Selection.js'],
|
|
|
|
heading: 'Controls',
|
|
|
|
desc: 'Enables selection in view mode'
|
|
|
|
},
|
|
|
|
|
2015-07-08 01:22:27 -05:00
|
|
|
ControlButtons: {
|
|
|
|
src: ['control/Control.js',
|
|
|
|
'control/Control.Buttons.js'],
|
|
|
|
heading: 'Buttons',
|
|
|
|
desc: 'Handles buttons from the toolbar'
|
|
|
|
},
|
|
|
|
|
2015-05-28 10:43:29 -05:00
|
|
|
ControlStatusIndicator: {
|
|
|
|
src: ['control/Control.js',
|
|
|
|
'control/Control.StatusIndicator.js'],
|
|
|
|
heading: 'Controls',
|
|
|
|
desc: 'Display document loading status'
|
|
|
|
},
|
|
|
|
|
2015-07-24 03:30:32 -05:00
|
|
|
ControlScroll: {
|
|
|
|
src: ['control/Control.js',
|
|
|
|
'control/Control.Scroll.js'],
|
|
|
|
heading: 'Controls',
|
|
|
|
desc: 'Creates and handles the scrollbar'
|
|
|
|
},
|
|
|
|
|
2015-08-06 09:41:56 -05:00
|
|
|
ControlDialog: {
|
|
|
|
src: ['control/Control.js',
|
|
|
|
'control/Control.Dialog.js'],
|
|
|
|
heading: 'Controls',
|
|
|
|
desc: 'Handles vex dialogs for displaying alerts'
|
|
|
|
},
|
|
|
|
|
2015-08-19 02:57:42 -05:00
|
|
|
ControlStyles: {
|
|
|
|
src: ['control/Control.js',
|
|
|
|
'control/Control.Styles.js'],
|
|
|
|
heading: 'Controls',
|
|
|
|
desc: 'Handles styles selection'
|
|
|
|
},
|
|
|
|
|
2015-09-10 03:26:47 -05:00
|
|
|
ControlFonts: {
|
|
|
|
src: ['control/Control.js',
|
|
|
|
'control/Control.Fonts.js'],
|
|
|
|
heading: 'Controls',
|
|
|
|
desc: 'Handles fonts selection'
|
|
|
|
},
|
|
|
|
|
2015-03-09 08:58:37 -05:00
|
|
|
ControlAttrib: {
|
|
|
|
src: ['control/Control.js',
|
|
|
|
'control/Control.Attribution.js'],
|
|
|
|
desc: 'Attribution control.'
|
|
|
|
},
|
|
|
|
|
|
|
|
ControlScale: {
|
|
|
|
src: ['control/Control.js',
|
|
|
|
'control/Control.Scale.js'],
|
|
|
|
desc: 'Scale control.'
|
|
|
|
},
|
|
|
|
|
|
|
|
ControlLayers: {
|
|
|
|
src: ['control/Control.js',
|
|
|
|
'control/Control.Layers.js'],
|
|
|
|
desc: 'Layer Switcher control.'
|
|
|
|
},
|
|
|
|
|
2015-07-10 03:00:53 -05:00
|
|
|
Search: {
|
|
|
|
src: ['control/Search.js'],
|
|
|
|
desc: 'Search command handler.'
|
|
|
|
},
|
|
|
|
|
2015-07-10 04:20:46 -05:00
|
|
|
Permission: {
|
|
|
|
src: ['control/Permission.js'],
|
|
|
|
desc: 'Permission change handler (edit, view, readonly).'
|
|
|
|
},
|
|
|
|
|
2015-09-09 10:47:14 -05:00
|
|
|
Toolbar: {
|
|
|
|
src: ['control/Toolbar.js'],
|
|
|
|
desc: 'Toolbar handler.'
|
2015-07-10 07:27:30 -05:00
|
|
|
},
|
|
|
|
|
2015-07-10 08:32:19 -05:00
|
|
|
Parts: {
|
|
|
|
src: ['control/Parts.js'],
|
|
|
|
desc: 'Parts change handler.'
|
|
|
|
},
|
|
|
|
|
2015-07-24 08:04:28 -05:00
|
|
|
Scroll: {
|
|
|
|
src: ['control/Scroll.js'],
|
|
|
|
desc: 'Scroll handler.'
|
|
|
|
},
|
|
|
|
|
2015-03-09 08:58:37 -05:00
|
|
|
AnimationPan: {
|
|
|
|
src: [
|
|
|
|
'dom/DomEvent.js',
|
|
|
|
'dom/PosAnimation.js',
|
|
|
|
'map/anim/Map.PanAnimation.js'
|
|
|
|
],
|
|
|
|
heading: 'Animation',
|
|
|
|
desc: 'Core panning animation support.'
|
|
|
|
},
|
|
|
|
|
|
|
|
AnimationZoom: {
|
|
|
|
src: [
|
|
|
|
'map/anim/Map.ZoomAnimation.js',
|
|
|
|
'map/anim/Map.FlyTo.js'
|
|
|
|
],
|
|
|
|
deps: ['AnimationPan'],
|
|
|
|
desc: 'Smooth zooming animation. Works only on browsers that support CSS3 Transitions.'
|
|
|
|
},
|
|
|
|
|
|
|
|
Geolocation: {
|
|
|
|
src: ['map/ext/Map.Geolocation.js'],
|
|
|
|
desc: 'Adds Map#locate method and related events to make geolocation easier.',
|
|
|
|
heading: 'Misc'
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
if (typeof exports !== 'undefined') {
|
|
|
|
exports.deps = deps;
|
|
|
|
}
|