forked from sydlawrence/spotify-apps-tutorial
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpolymaps.html
More file actions
48 lines (40 loc) · 1.46 KB
/
Copy pathpolymaps.html
File metadata and controls
48 lines (40 loc) · 1.46 KB
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
<!DOCTYPE html>
<html>
<head>
<style>
@import url('sp://import/css/eve.css');
@import url('sp://spotify-apps-tutorial/css/main.css');
#map {width:400px;height:400px;border:1px solid #333;}
</style>
</head>
<body>
<div id="wrapper">
<ul class="breadcrumb">
<li><a href="sp://spotify-apps-tutorial/index.html">« Back to main page</a></li>
</ul>
<h1>Title of tutorial</h1>
<p class="description">Description of tutorial</p>
<h3>The Javascript</h3>
<h3>The HTML</h3>
<h3>The CSS</h3>
<h3>Live Example</h3>
<div id="map"></div>
</div><!-- /wrapper -->
<script src="https://raw.github.com/simplegeo/polymaps/master/polymaps.js"></script>
<script type="text/javascript">
var po = org.polymaps;
var map_div = document.getElementById('map');
var map = po.map()
.container(document.getElementById("map")
.appendChild(po.svg("svg")))
.add(po.interact())
.add(po.hash());
map.add(po.image()
.url(po.url("http://{S}tile.cloudmade.com"
+ "/5814d279db61404b9e52115b06b9e7b3"
+ "/52527/256/{Z}/{X}/{Y}.png")
.hosts(["a.", "b.", "c.", ""])));
map.add(po.compass().pan("none"));
</script>
</body>
</html>