forked from HackaBXL/2014_think-of-the-children
-
Notifications
You must be signed in to change notification settings - Fork 0
/
playground.html
51 lines (44 loc) · 1.58 KB
/
playground.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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>think of the children - playground</title>
<link rel='stylesheet' href='//ajax.googleapis.com/ajax/libs/jqueryui/1.11.2/themes/smoothness/jquery-ui.css' />
<link rel="stylesheet" href='http://api.tiles.mapbox.com/mapbox.js/v1.5.2/mapbox.css'/>
<link rel='stylesheet' type='text/css' href='css/nab.css'>
<style>
</style>
</head>
<body>
<div class="screen">
<h1 class="center">Welcome to the playground</h1>
<div class="mapFrameHome" id="map-canvas"></div>
</div>
<!-- IMPORT LIBRARIES -->
<script src="//ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<script src="//ajax.googleapis.com/ajax/libs/jqueryui/1.11.2/jquery-ui.min.js"></script>
<script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?sensor=false"></script>
<script type="text/javascript">
function initialize() {
// GENERATE MAP
var map = new google.maps.Map(document.getElementById('map-canvas'), {
center: { lat: 50.854975, lng: 4.3753899},
zoom: 12
});
// STYLE
var featureStyle = {
fillColor: '#F92772',
strokeWeight: 1
}
console.log(map.data);
map.data.setStyle(featureStyle);
// JSON
map.data.loadGeoJson('Data/db.json');
}
google.maps.event.addDomListener(window, 'load', initialize);
</script>
<script type="text/javascript" src='config.js'></script>
<script type="text/javascript" src='map.js'></script>
<script type="text/javascript" src='app.js'></script>
</body>
</html>