forked from shawnbot/HTMAPL
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
63 lines (54 loc) · 2.09 KB
/
index.html
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
63
<html>
<head>
<title>HTMAPL: HyperText Maps</title>
<script type="text/javascript" src="lib/jquery-1.5.min.js"></script>
<script type="text/javascript" src="lib/modestmaps.js"></script>
<script type="text/javascript" src="lib/modestmaps.markers.js"></script>
<script type="text/javascript" src="src/htmapl.js"></script>
<style type="text/css">
@import url(style/screen.css);
div.map {
width: 100%;
height: 200px;
}
</style>
</head>
<body>
<h1><span><</span>HTMAPL<span>></h1>
<h2>HyperText Maps</h2>
<div class="map" data-center="37.7647463,-122.41951" data-zoom="10">
<div class="marker" data-location="37.7647463,-122.41951">
<a href="http://stamen.com">Stamen</a>
</div>
<div class="controls">
<button data-action="zoomIn">+ in</button>
<button data-action="zoomOut">− out</button>
</div>
</div>
<pre><div class="map" data-center="37.765,-122.413" data-zoom="11">
<div class="marker" data-location="37.7647463,-122.41951">
<a href="http://stamen.com">Stamen</a>
</div>
<div class="controls">
<button data-action="zoomIn">+ in</button>
<button data-action="zoomOut">− out</button>
</div>
</div></pre>
<h2>HTMAPL is:</h2>
<ol>
<li>An HTML vocabulary for describing both interactive and static geographic maps with layers and markers</li>
<li>A <a href="http://jquery.com">jQuery</a> plugin that associates the HTML vocabulary with <a href="http://github.com/stamen/modestmaps-js">ModestMaps</a>,
making it <strong>frighteningly easy to make web-native geographic maps</strong></li>
</ol>
<h2>Examples</h2>
<ul>
<li><a href="examples/providers.html">Built-in map providers</a></li>
<li><a href="examples/crimespotting/index.html">Oakland Crimespotting</a></li>
</ul>
<script type="text/javascript" defer="defer">
$(function() {
$("div.map").htmapl();
});
</script>
</body>
</html>