2010-09-15 22:04:30 +08:00
|
|
|
<!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>
|
2010-09-16 21:09:04 +08:00
|
|
|
<script type="text/javascript" src="../src/dom/Draggable.js"></script>
|
2010-09-15 22:04:30 +08:00
|
|
|
|
|
|
|
<!-- /geo -->
|
|
|
|
<script type="text/javascript" src="../src/geo/LatLng.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>
|
|
|
|
|
2010-09-16 23:33:33 +08:00
|
|
|
<!-- /handlers -->
|
|
|
|
<script type="text/javascript" src="../src/handler/Handler.js"></script>
|
|
|
|
<script type="text/javascript" src="../src/handler/MapDrag.js"></script>
|
|
|
|
|
2010-09-16 21:09:04 +08:00
|
|
|
<!-- / -->
|
2010-09-15 22:04:30 +08:00
|
|
|
<script type="text/javascript" src="../src/Map.js"></script>
|
|
|
|
|
2010-09-16 21:09:04 +08:00
|
|
|
<link rel="stylesheet" type="text/css" href="../dist/leaflet.css" />
|
2010-09-15 22:04:30 +08:00
|
|
|
</head>
|
2010-09-16 23:33:33 +08:00
|
|
|
<body>
|
2010-09-15 22:04:30 +08:00
|
|
|
|
2010-09-16 23:33:33 +08:00
|
|
|
<div id="map" style="width: 500px; height: 500px; border: 1px solid #ccc"></div>
|
2010-09-15 22:04:30 +08:00
|
|
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
|
2010-09-17 00:57:49 +08:00
|
|
|
var cloudmadeUrl = 'http://{s}.tile.cloudmade.com/BC9A493B41014CAABB98F0471D759707/997/256/{z}/{x}/{y}.png',
|
2010-09-16 21:09:04 +08:00
|
|
|
cloudmade = new L.TileLayer(cloudmadeUrl, {maxZoom: 18}),
|
|
|
|
latlng = new L.LatLng(50.5, 30.51);
|
2010-09-15 22:04:30 +08:00
|
|
|
|
2010-09-17 00:57:49 +08:00
|
|
|
var map = new L.Map('map').addLayer(cloudmade).setView(latlng, 15);
|
|
|
|
|
2010-09-15 22:04:30 +08:00
|
|
|
</script>
|
|
|
|
</body>
|
|
|
|
</html>
|