2 //TODO replace script list with the one from ../buid/deps.js
13 'geometry/Transformation.js',
14 'geometry/LineUtil.js',
15 'geometry/PolyUtil.js',
18 'dom/DomEvent.DoubleTap.js',
22 'dom/transition/Transition.js',
23 'dom/transition/Transition.Native.js',
24 'dom/transition/Transition.Timer.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',
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',
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',
65 'handler/TouchZoom.js',
66 'handler/DoubleClickZoom.js',
67 'handler/ScrollWheelZoom.js',
68 'handler/ShiftDragZoom.js',
69 'handler/MarkerDrag.js',
72 'control/Control.Zoom.js',
73 'control/Control.Attribution.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
;
88 var res
= src
.match(/^(.*)leaflet-include\.js$/);
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>");