-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathCorfuMap.html
More file actions
55 lines (45 loc) · 1.43 KB
/
CorfuMap.html
File metadata and controls
55 lines (45 loc) · 1.43 KB
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
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="initial-scale=1.0, user-scalable=no">
<meta charset="utf-8">
<title>Corfu Pedestrian Map</title>
<link rel="shortcut icon" href="favicon.ico">
<style>
html, body, #map-canvas {
height: 100%;
margin: 0px;
padding: 0px
}
</style>
<script src="https://maps.googleapis.com/maps/api/js?v=3.exp&signed_in=false&key=AIzaSyAexDog4mT1k1S63Py4r7AYTMd2cEf9W7o"></script>
<script>
function initialize() {
var corfu = new google.maps.LatLng(39.622429,19.924130);
var mapOptions = {
zoom: 18,
center: corfu
}
var map = new google.maps.Map(document.getElementById('map-canvas'), mapOptions);
map.set('styles',[
{
"featureType": "road",
"stylers": [
{ "visibility": "off" }
]
},{
}
]);
var pedestrianLayer = new google.maps.KmlLayer({
url: 'http://corfu.pathsonmap.eu/pedestrianKmls/CorfuPedestrianRoads.kmz',
preserveViewport: true
});
pedestrianLayer.setMap(map);
}
google.maps.event.addDomListener(window, 'load', initialize);
</script>
</head>
<body>
<div id="map-canvas"></div>
</body>
</html>