tidy up debug files

This commit is contained in:
Mourner 2011-04-08 14:53:34 +03:00
parent 1eac8cd9aa
commit dde1c03298
9 changed files with 67 additions and 21 deletions

6
debug/css/mobile.css Normal file
View File

@ -0,0 +1,6 @@
html, body, #map {
margin: 0;
padding: 0;
width: 100%;
height: 100%;
}

5
debug/css/screen.css Normal file
View File

@ -0,0 +1,5 @@
#map {
width: 800px;
height: 600px;
border: 1px solid #ccc;
}

View File

@ -56,6 +56,6 @@
];
for (var i = 0; i < scripts.length; i++) {
document.writeln("<script type='text/javascript' src='../src/" + scripts[i] + "'></script>");
document.writeln("<script type='text/javascript' src='../../src/" + scripts[i] + "'></script>");
}
})();

View File

@ -5,19 +5,12 @@
<meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
<link rel="stylesheet" type="text/css" href="../dist/leaflet.css" />
<!--[if lte IE 8]><link rel="stylesheet" href="../dist/leaflet.ie.css" /><![endif]-->
<link rel="stylesheet" href="../../dist/leaflet.css" />
<!--[if lte IE 8]><link rel="stylesheet" href="../../dist/leaflet.ie.css" /><![endif]-->
<script type="text/javascript" src="include.js"></script>
<link rel="stylesheet" href="../css/mobile.css" />
<style type="text/css">
html, body, #map {
margin: 0;
padding: 0;
width: 100%;
height: 100%;
}
</style>
<script src="../include.js"></script>
</head>
<body>

View File

@ -3,10 +3,12 @@
<head>
<title>Leaflet debug page</title>
<link rel="stylesheet" href="../dist/leaflet.css" />
<!--[if lte IE 8]><link rel="stylesheet" href="../dist/leaflet.ie.css" /><![endif]-->
<link rel="stylesheet" href="../../dist/leaflet.css" />
<!--[if lte IE 8]><link rel="stylesheet" href="../../dist/leaflet.ie.css" /><![endif]-->
<script type="text/javascript" src="include.js"></script>
<link rel="stylesheet" href="../css/screen.css" />
<script src="../include.js"></script>
</head>
<body>

View File

@ -0,0 +1,38 @@
<!DOCTYPE html>
<html>
<head>
<title>Leaflet debug page</title>
<meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
<link rel="stylesheet" href="../../dist/leaflet.css" />
<!--[if lte IE 8]><link rel="stylesheet" href="../../dist/leaflet.ie.css" /><![endif]-->
<link rel="stylesheet" href="../css/mobile.css" />
<script src="../include.js"></script>
</head>
<body>
<div id="map"></div>
<script src="route.js"></script>
<script>
var cloudmadeUrl = 'http://{s}.tile.cloudmade.com/BC9A493B41014CAABB98F0471D759707/997/256/{z}/{x}/{y}.png',
cloudmade = new L.TileLayer(cloudmadeUrl, {maxZoom: 18});
for (var i = 0, latlngs = [], len = route.length; i < len; i++) {
latlngs.push(new L.LatLng(route[i][0], route[i][1]));
}
var path = new L.Polyline(latlngs, {smoothFactor: 1});
var map = new L.Map('map', {layers: [cloudmade]});
map.fitBounds(new L.LatLngBounds(latlngs));
map.addLayer(new L.Marker(latlngs[0]));
map.addLayer(new L.Marker(latlngs[latlngs.length - 1]));
map.addLayer(path);
</script>
</body>
</html>

View File

@ -3,10 +3,12 @@
<head>
<title>Leaflet debug page</title>
<link rel="stylesheet" href="../dist/leaflet.css" />
<!--[if lte IE 8]><link rel="stylesheet" href="../dist/leaflet.ie.css" /><![endif]-->
<link rel="stylesheet" href="../../dist/leaflet.css" />
<!--[if lte IE 8]><link rel="stylesheet" href="../../dist/leaflet.ie.css" /><![endif]-->
<script src="include.js"></script>
<link rel="stylesheet" href="../css/screen.css" />
<script src="../include.js"></script>
</head>
<body>
<div id="map" style="width: 800px; height: 600px; border: 1px solid #ccc"></div>

View File

@ -14,7 +14,7 @@ var L = {
res = src && src.match(/^(.*\/)leaflet-*\w*\.js.*$/);
if (res && res[1]) { return res[1]; }
}
return '../dist/';
return '../../dist/';
})(),
noConflict: function() {