debug pages with common include
This commit is contained in:
parent
d30ebc0d4b
commit
03e49eeaab
45
debug/include.js
Normal file
45
debug/include.js
Normal file
@ -0,0 +1,45 @@
|
||||
(function() {
|
||||
var scripts = [
|
||||
'Leaflet.js',
|
||||
|
||||
'core/Util.js',
|
||||
'core/Class.js',
|
||||
'core/Events.js',
|
||||
'core/Browser.js',
|
||||
|
||||
'dom/DomEvent.js',
|
||||
'dom/DomUtil.js',
|
||||
'dom/Draggable.js',
|
||||
|
||||
'dom/transition/Transition.js',
|
||||
'dom/transition/Transition.Native.js',
|
||||
'dom/transition/Transition.Timer.js',
|
||||
|
||||
'geo/LatLng.js',
|
||||
'geo/LatLngBounds.js',
|
||||
'geo/Projection.js',
|
||||
|
||||
'geometry/Point.js',
|
||||
'geometry/Bounds.js',
|
||||
'geometry/Transformation.js',
|
||||
|
||||
'layer/TileLayer.js',
|
||||
'layer/ImageOverlay.js',
|
||||
'layer/Icon.js',
|
||||
'layer/Marker.js',
|
||||
|
||||
'handler/Handler.js',
|
||||
'handler/MapDrag.js',
|
||||
'handler/TouchZoom.js',
|
||||
'handler/DoubleClickZoom.js',
|
||||
'handler/ScrollWheelZoom.js',
|
||||
|
||||
'map/Map.js',
|
||||
'map/Map.Geolocation.js',
|
||||
'map/Map.Animation.js'
|
||||
];
|
||||
|
||||
for (var i = 0; i < scripts.length; i++) {
|
||||
document.writeln("<script type='text/javascript' src='../src/" + scripts[i] + "'></script>");
|
||||
}
|
||||
})();
|
@ -1,46 +1,12 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Leaflet debug page</title>
|
||||
|
||||
<meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
|
||||
|
||||
<script type="text/javascript" src="../src/Leaflet.js"></script>
|
||||
|
||||
<!-- /core -->
|
||||
<script type="text/javascript" src="../src/core/Util.js"></script>
|
||||
<script type="text/javascript" src="../src/core/Class.js"></script>
|
||||
<script type="text/javascript" src="../src/core/Events.js"></script>
|
||||
<script type="text/javascript" src="../src/core/Browser.js"></script>
|
||||
|
||||
<!-- /dom -->
|
||||
<script type="text/javascript" src="../src/dom/DomEvent.js"></script>
|
||||
<script type="text/javascript" src="../src/dom/DomUtil.js"></script>
|
||||
<script type="text/javascript" src="../src/dom/Draggable.js"></script>
|
||||
|
||||
<!-- /geo -->
|
||||
<script type="text/javascript" src="../src/geo/LatLng.js"></script>
|
||||
<script type="text/javascript" src="../src/geo/LatLngBounds.js"></script>
|
||||
<script type="text/javascript" src="../src/geo/Projection.js"></script>
|
||||
|
||||
<!-- /geometry -->
|
||||
<script type="text/javascript" src="../src/geometry/Point.js"></script>
|
||||
<script type="text/javascript" src="../src/geometry/Bounds.js"></script>
|
||||
<script type="text/javascript" src="../src/geometry/Transformation.js"></script>
|
||||
|
||||
<!-- /layer -->
|
||||
<script type="text/javascript" src="../src/layer/TileLayer.js"></script>
|
||||
|
||||
<!-- /handlers -->
|
||||
<script type="text/javascript" src="../src/handler/Handler.js"></script>
|
||||
<script type="text/javascript" src="../src/handler/MapDrag.js"></script>
|
||||
<script type="text/javascript" src="../src/handler/TouchZoom.js"></script>
|
||||
<script type="text/javascript" src="../src/handler/DoubleClickZoom.js"></script>
|
||||
<script type="text/javascript" src="../src/handler/ScrollWheelZoom.js"></script>
|
||||
|
||||
<!-- /map -->
|
||||
<script type="text/javascript" src="../src/map/Map.js"></script>
|
||||
<script type="text/javascript" src="../src/map/Map.Geolocation.js"></script>
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="../dist/leaflet.css" />
|
||||
<script type="text/javascript" src="include.js"></script>
|
||||
|
||||
<style type="text/css">
|
||||
html, body, #map {
|
||||
@ -63,6 +29,9 @@
|
||||
|
||||
var map = new L.Map('map').addLayer(cloudmade).setView(latlng, 15).locate();
|
||||
|
||||
var marker = new L.Marker(latlng).on('click', function() { alert("Hi!"); });
|
||||
map.addLayer(marker);
|
||||
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
@ -1,50 +1,10 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<script type="text/javascript" src="../src/Leaflet.js"></script>
|
||||
|
||||
<!-- /core -->
|
||||
<script type="text/javascript" src="../src/core/Util.js"></script>
|
||||
<script type="text/javascript" src="../src/core/Class.js"></script>
|
||||
<script type="text/javascript" src="../src/core/Events.js"></script>
|
||||
<script type="text/javascript" src="../src/core/Browser.js"></script>
|
||||
|
||||
<!-- /dom -->
|
||||
<script type="text/javascript" src="../src/dom/DomEvent.js"></script>
|
||||
<script type="text/javascript" src="../src/dom/DomUtil.js"></script>
|
||||
<script type="text/javascript" src="../src/dom/Draggable.js"></script>
|
||||
|
||||
<!-- /dom/transition -->
|
||||
<script type="text/javascript" src="../src/dom/transition/Transition.js"></script>
|
||||
<script type="text/javascript" src="../src/dom/transition/Transition.Native.js"></script>
|
||||
<script type="text/javascript" src="../src/dom/transition/Transition.Timer.js"></script>
|
||||
|
||||
<!-- /geo -->
|
||||
<script type="text/javascript" src="../src/geo/LatLng.js"></script>
|
||||
<script type="text/javascript" src="../src/geo/LatLngBounds.js"></script>
|
||||
<script type="text/javascript" src="../src/geo/Projection.js"></script>
|
||||
|
||||
<!-- /geometry -->
|
||||
<script type="text/javascript" src="../src/geometry/Point.js"></script>
|
||||
<script type="text/javascript" src="../src/geometry/Bounds.js"></script>
|
||||
<script type="text/javascript" src="../src/geometry/Transformation.js"></script>
|
||||
|
||||
<!-- /layer -->
|
||||
<script type="text/javascript" src="../src/layer/TileLayer.js"></script>
|
||||
<title>Leaflet debug page</title>
|
||||
|
||||
<!-- /handlers -->
|
||||
<script type="text/javascript" src="../src/handler/Handler.js"></script>
|
||||
<script type="text/javascript" src="../src/handler/MapDrag.js"></script>
|
||||
<script type="text/javascript" src="../src/handler/TouchZoom.js"></script>
|
||||
<script type="text/javascript" src="../src/handler/DoubleClickZoom.js"></script>
|
||||
<script type="text/javascript" src="../src/handler/ScrollWheelZoom.js"></script>
|
||||
|
||||
<!-- /map -->
|
||||
<script type="text/javascript" src="../src/map/Map.js"></script>
|
||||
<script type="text/javascript" src="../src/map/Map.Geolocation.js"></script>
|
||||
<script type="text/javascript" src="../src/map/Map.Animation.js"></script>
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="../dist/leaflet.css" />
|
||||
<script type="text/javascript" src="include.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
@ -57,6 +17,10 @@
|
||||
latlng = new L.LatLng(50.5, 30.51);
|
||||
|
||||
var map = new L.Map('map').addLayer(cloudmade).setView(latlng, 15);
|
||||
|
||||
var marker = new L.Marker(latlng).on('click', function() { alert("Hi!"); });
|
||||
map.addLayer(marker);
|
||||
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
Loading…
Reference in New Issue
Block a user