2013-02-28 18:38:27 +08:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<title>Leaflet debug page</title>
|
|
|
|
|
|
|
|
<link rel="stylesheet" href="../../dist/leaflet.css" />
|
2013-11-08 22:43:14 +08:00
|
|
|
|
2013-02-28 18:38:27 +08:00
|
|
|
<link rel="stylesheet" href="../css/screen.css" />
|
2013-11-08 22:43:14 +08:00
|
|
|
|
2013-02-28 18:38:27 +08:00
|
|
|
<script src="../leaflet-include.js"></script>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
|
|
|
|
<div id="map" style="width: 600px; height: 600px; border: 1px solid #ccc"></div>
|
|
|
|
|
2017-02-04 23:17:51 +08:00
|
|
|
<script>
|
2013-02-28 18:38:27 +08:00
|
|
|
|
|
|
|
var map = L.map('map').setView( [50, 50], 10);
|
|
|
|
var marker = L.marker([50, 50], {draggable: true}).addTo(map);
|
|
|
|
|
|
|
|
setTimeout(function() {
|
2016-04-29 17:35:50 +08:00
|
|
|
map.removeLayer(marker);
|
2013-02-28 18:38:27 +08:00
|
|
|
}, 3000);
|
2013-11-08 22:43:14 +08:00
|
|
|
|
2013-02-28 18:38:27 +08:00
|
|
|
</script>
|
|
|
|
</body>
|
2013-11-08 22:43:14 +08:00
|
|
|
</html>
|