Script and makefile adjustments for updating extlib
[larjonas-mediagoblin.git] / extlib / leaflet / debug / leaflet-include.js
blob9ae8f45852d66b35dd8a28f9d42d07d2f55626ac
1 (function() {
2 //TODO replace script list with the one from ../buid/deps.js
3 var scripts = [
4 'Leaflet.js',
6 'core/Util.js',
7 'core/Class.js',
8 'core/Events.js',
9 'core/Browser.js',
11 'geometry/Point.js',
12 'geometry/Bounds.js',
13 'geometry/Transformation.js',
14 'geometry/LineUtil.js',
15 'geometry/PolyUtil.js',
17 'dom/DomEvent.js',
18 'dom/DomEvent.DoubleTap.js',
19 'dom/DomUtil.js',
20 'dom/Draggable.js',
22 'dom/transition/Transition.js',
23 'dom/transition/Transition.Native.js',
24 'dom/transition/Transition.Timer.js',
26 'geo/LatLng.js',
27 'geo/LatLngBounds.js',
29 'geo/projection/Projection.js',
30 'geo/projection/Projection.SphericalMercator.js',
31 'geo/projection/Projection.LonLat.js',
32 'geo/projection/Projection.Mercator.js',
34 'geo/crs/CRS.js',
35 'geo/crs/CRS.EPSG3857.js',
36 'geo/crs/CRS.EPSG4326.js',
37 'geo/crs/CRS.EPSG3395.js',
39 'layer/LayerGroup.js',
40 'layer/FeatureGroup.js',
42 'layer/tile/TileLayer.js',
43 'layer/tile/TileLayer.WMS.js',
44 'layer/tile/TileLayer.Canvas.js',
45 'layer/ImageOverlay.js',
46 'layer/Popup.js',
48 'layer/marker/Icon.js',
49 'layer/marker/Marker.js',
50 'layer/marker/Marker.Popup.js',
52 'layer/vector/Path.js',
53 'layer/vector/Path.VML.js',
54 'layer/vector/Path.Popup.js',
55 'layer/vector/Polyline.js',
56 'layer/vector/Polygon.js',
57 'layer/vector/MultiPoly.js',
58 'layer/vector/Circle.js',
59 'layer/vector/CircleMarker.js',
61 'layer/GeoJSON.js',
63 'handler/Handler.js',
64 'handler/MapDrag.js',
65 'handler/TouchZoom.js',
66 'handler/DoubleClickZoom.js',
67 'handler/ScrollWheelZoom.js',
68 'handler/ShiftDragZoom.js',
69 'handler/MarkerDrag.js',
71 'control/Control.js',
72 'control/Control.Zoom.js',
73 'control/Control.Attribution.js',
75 'map/Map.js',
76 'map/ext/Map.Geolocation.js',
77 'map/ext/Map.Popup.js',
78 'map/ext/Map.PanAnimation.js',
79 'map/ext/Map.ZoomAnimation.js',
80 'map/ext/Map.Control.js'
83 function getSrcUrl() {
84 var scripts = document.getElementsByTagName('script');
85 for (var i = 0; i < scripts.length; i++) {
86 var src = scripts[i].src;
87 if (src) {
88 var res = src.match(/^(.*)leaflet-include\.js$/);
89 if (res) {
90 return res[1] + '../src/';
96 var path = getSrcUrl();
97 for (var i = 0; i < scripts.length; i++) {
98 document.writeln("<script type='text/javascript' src='" + path + "../src/" + scripts[i] + "'></script>");
100 })();