-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
92 lines (88 loc) · 3.33 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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title></title>
<link rel="stylesheet" href="css/leaflet.css" />
<!--[if lte IE 8]>
<link rel="stylesheet" href="css/leaflet.ie.css" />
<![endif]-->
<link rel="stylesheet" href="css/app.css" type="text/css">
</head>
<body>
<header>
<div id="show" class="toggle container"><i>↧</i> Show</div>
<div id="info" class="container">
<h2>Map Title</h2>
<div id="hide" class="toggle"><i>↥</i> Hide</div>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
<hr>
<p>Search for a Philadelphia address: </p>
<form id="geocoder"></form>
</div>
</header>
<section>
<div id="map"></div>
</section>
<footer>
<div id="logo" class="container">
<a href="http://www.axisphilly.org" target="_blank"> </a>
</div>
</footer>
<script type="text/javascript" src="js/leaflet.js"></script>
<script type="text/javascript" src="js/wax.leaf.min.js"></script>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js"></script>
<script type="text/javascript" src="http://maps.googleapis.com/maps/api/js?sensor=false"></script>
<script type="text/javascript" src="js/jquery.geocodify.js"></script>
<script type="text/javascript" src="js/purl.js"></script>
<script type="text/javascript" src="js/underscore.min.js"></script>
<script type="text/javascript" src="js/app.js"></script>
<script type="text/javascript">
$(document).ready(function(){
// Setup geocoding
$("#geocoder").geocodify({
onSelect: function (result) {
app.map
.panTo(new L.LatLng(result.geometry.location.Ya, result.geometry.location.Za))
.setZoom(17);
},
viewportBias: new google.maps.LatLngBounds(
new google.maps.LatLng(39.884, -75.318),
new google.maps.LatLng(40.130, -74.881)
)
});
// Bind toggle
$("#hide").click(function(){
$("#info").slideUp();
})
$("#show").click(function(){
$("#info").slideDown();
});
// Default settings. Overridden by URL params, if they exist
app.opts = {
mapContainer: 'map',
tileURL: 'http://api.tiles.mapbox.com/v3/caseypt.map-kbiq8yif.jsonp',
mapOptions: {
center: [39.99, -75.150],
zoom: 12,
minZoom: 11,
maxZoom: 18,
maxBounds: [
[39.69, -76.20],
[40.60, -74.14]
]
}
}
// Kick off map
app.initMap(function() {
//Custom code goes here.
});
});
</script>
</body>
</html>