-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathleaflet-test.htm
62 lines (60 loc) · 2.23 KB
/
leaflet-test.htm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
<!DOCTYPE html>
<html>
<head>
<title>tile.stamen.com: Leaflet</title>
<script type="text/javascript" src="https://cdn.leafletjs.com/leaflet-0.7.3/leaflet.js"></script>
<link rel="stylesheet" href="https://cdn.leafletjs.com/leaflet-0.7.3/leaflet.css" />
<script type="text/javascript" src="https://maps.stamen.com/js/tile.stamen.js?v1.2.4"></script>
<script src="https://code.jquery.com/jquery-1.8.2.min.js"></script>
<script type="text/javascript">
function initialize() {
var layer ="watercolor"
var map = new L.Map(layer, {
center: new L.LatLng(Math.random()*30 + 6, Math.random()*30 + 6),
zoom: 10
});
map.addLayer(new L.StamenTileLayer(layer));
var degrees = 0;
var timer = setInterval (function () {$(".map").css({'transform' : 'rotate('+degrees+'deg)'}); degrees ++;}, 60);
}
</script>
<style type="text/css">
html {
overflow: hide;
}
.map {
width: 1000px;
height: 1000px;
position: absolute;
left: -200px;
top: -200px;
margin: 0 0 1em 0;
}
.border {
width: 100%;
height: 100%;
position: absolute;
border: 20px dotted #000;
border-radius: 11px;
z-index: 124914;
top: -10px;
left: -10px;
right: -10px;
bottom: -10px;
}
.player {
width: 300px;
height: 100px;
position: absolute;
left: 10px;
top: 10px;
margin: 0 0 1em 0;
z-index: 11122;
}
</style>
</head>
<body onload="initialize()">
<iframe width="300" class="player" height="100" scrolling="no" frameborder="no" src="https://w.soundcloud.com/player/?url=https%3A//api.soundcloud.com/tracks/102561665&auto_play=true&hide_related=false&visual=false"></iframe>
<div id="watercolor" class="map"></div>
</body>
</html>