-
Notifications
You must be signed in to change notification settings - Fork 1
/
gmaps-popup.html
50 lines (49 loc) · 1.41 KB
/
gmaps-popup.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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<meta name="viewport" content="initial-scale=1.0, user-scalable=no"/>
<title>Sample Map</title>
<link type="text/css" rel="stylesheet" href="styles/lib/bootstrap.min.css"/>
<link type="text/css" rel="stylesheet" href="styles/onlymap.css"/>
</head>
<body>
<div id="map">
</div>
<script type="text/javascript" src="scripts/georeactor-client.js"></script>
<script type="text/javascript" src="scripts/georeactor-gmaps.js"></script>
<script type="text/javascript">
georeactor({
div: 'map',
popups: true,
data: [
'data/chennai-wards.geojson'
],
API_KEY: 'AIzaSyDHHf_1Brj5HO-FFjfdZwPly_K5mId9WOk',
attributes: {
_order: ['Zone_Name', 'Zone_No', 'Ward_No'],
Zone_No: {
label: 'Zone Number'
},
Zone_Name: {
label: 'Zone Name',
value: function(key, val) {
val = val.toLowerCase().split(/\s+/g).map(function(part) {
return part.replace(part[0], part[0].toUpperCase());
}).join('');
return val;
}
},
Ward_No: {
label: 'Ward Number'
},
AREA: {
label: 'Area',
value: '#{AREA} sq km'
},
PERIMETER: false
}
});
</script>
</body>
</html>