-
Notifications
You must be signed in to change notification settings - Fork 19
/
index.html
75 lines (71 loc) · 2.62 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
64
65
66
67
68
69
70
71
72
73
74
75
<!DOCTYPE html>
<html>
<head>
<meta name='viewport' content='initial-scale=1,maximum-scale=1,user-scalable=no' />
<meta charset=utf-8 />
<title>Leaflet.ShareLocation</title>
<!-- <link href="//netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css" rel="stylesheet">-->
<!-- <link href='https://www.mapbox.com/base/latest/base.css' rel='stylesheet' />-->
<link href='//netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css' rel='stylesheet' />
<link rel="stylesheet" href="//cdn.leafletjs.com/leaflet-0.7.1/leaflet.css" />
<script src="//cdn.leafletjs.com/leaflet-0.7.2/leaflet.js"></script>
<script src='Leaflet.LocationShare.js'></script>
<style>
.mapContainer {
border-radius: 8px;
z-index: 5000;
}
.crop-box {
width: 70px;
height: 50px;
overflow: hidden;
}
.crop-box img {
max-height: 50px;
max-width: 70px;
margin: 0px 0px 0px 0px;
float:right;
}
</style>
</head>
<body>
<div class='container'>
<div class='row'>
<div class='col-md-offset-1 col-md-10 '>
<h1>Leaflet.LocationShare <small>Client-Side location sharing for leaflet</small></h1>
</div>
<div class='col-md-offset-1 col-md-10 '>
<div id='map' style='width:5000px;height:400px;' class='mapContainer img-responsive'></div>
<div style="padding-top:15px;text-align:center;">
<h4>Usage:</h4>
<p>include <code> Leaflet.LocationShare.js</code> immediately after <code> http://cdn.leafletjs.com/leaflet-0.7.2/leaflet.js</code></p>
<p>For anything else, check out the <a href='https://github.com/CliffCloud/Leaflet.LocationShare'>project on GitHub</a>.</p>
</div>
<div style="float:right">
<table>
<tr>
<td style="width:50px">
<span class="crop-box">
<a href="http://www.cliffcloud.com"><img class="topImage" src="http://www.cliffcloud.com/assets/images/cliffcloud_logo_small.png" /></a>
</span>
</td>
<td style="width:50px">
<span class="crop-box">
<a href="https://github.com/CliffCloud/Leaflet.LocationShare"><img class="topImage" src="https://assets-cdn.github.com/images/modules/logos_page/GitHub-Mark.png" /></a>
</span>
</td>
</tr>
</table>
</div>
</div>
<div class='col-md-1' style="float:right;">
</div>
</div>
</div>
</div>
<script>
var map = L.map('map').setView([37.8, -96], 4);
L.tileLayer('http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png').addTo(map);
</script>
</body>
</html>