diff --git a/am_route_1.kml b/am_route_1.kml new file mode 100644 index 0000000..17a8f70 --- /dev/null +++ b/am_route_1.kml @@ -0,0 +1,295 @@ + + + + Amsterdam Museum Bike Route + + + + + + + + + + + + + + + + + Line 2 + + #style6 + + 1 + + 4.901240,52.369549,0.000000 + 4.903920,52.368450,0.000000 + 4.903450,52.368031,0.000000 + 4.902990,52.367931,0.000000 + 4.902680,52.367710,0.000000 + 4.902110,52.367149,0.000000 + 4.901500,52.366619,0.000000 + 4.901670,52.366402,0.000000 + 4.903046,52.363716,0.000000 + + + + + Line 3 + + #style5 + + 1 + + 4.903035,52.363712,0.000000 + 4.901635,52.363464,0.000000 + 4.901233,52.364220,0.000000 + 4.900718,52.364101,0.000000 + 4.900063,52.363979,0.000000 + 4.899141,52.363800,0.000000 + 4.898647,52.363678,0.000000 + 4.898368,52.363659,0.000000 + 4.898046,52.363586,0.000000 + 4.897081,52.363388,0.000000 + 4.896137,52.363213,0.000000 + 4.895257,52.363262,0.000000 + 4.894323,52.363407,0.000000 + 4.889334,52.364117,0.000000 + 4.885987,52.360504,0.000000 + + + + + Line 4 + + #style7 + + 1 + + 4.885976,52.360512,0.000000 + 4.885075,52.360985,0.000000 + 4.884206,52.360558,0.000000 + 4.883155,52.360291,0.000000 + 4.883487,52.359653,0.000000 + 4.883391,52.359516,0.000000 + 4.883133,52.359444,0.000000 + 4.881878,52.359112,0.000000 + 4.878681,52.358257,0.000000 + + + + + Line 5 + + #style11 + + 1 + + 4.878616,52.358318,0.000000 + 4.877093,52.360191,0.000000 + 4.876771,52.360554,0.000000 + 4.877039,52.360603,0.000000 + 4.878477,52.360737,0.000000 + 4.880730,52.361389,0.000000 + 4.881878,52.361721,0.000000 + 4.882173,52.362026,0.000000 + 4.882532,52.362240,0.000000 + 4.883106,52.362259,0.000000 + 4.883637,52.362549,0.000000 + 4.883434,52.362839,0.000000 + 4.882715,52.363659,0.000000 + 4.882243,52.363834,0.000000 + 4.882704,52.364216,0.000000 + 4.883401,52.364601,0.000000 + 4.884903,52.365269,0.000000 + 4.885612,52.365582,0.000000 + 4.886266,52.365952,0.000000 + 4.887983,52.366722,0.000000 + + + + + Line 7 + + #style10 + + 1 + + 4.887961,52.366722,0.000000 + 4.886427,52.367607,0.000000 + 4.886320,52.367859,0.000000 + 4.886523,52.369057,0.000000 + 4.886588,52.370262,0.000000 + 4.888262,52.370171,0.000000 + 4.888991,52.370274,0.000000 + 4.889570,52.370399,0.000000 + 4.889978,52.370564,0.000000 + 4.891174,52.370693,0.000000 + + + + + Line 8 + + #style1 + + 1 + + 4.891180,52.370693,0.000000 + 4.891706,52.370781,0.000000 + 4.891899,52.371147,0.000000 + 4.891984,52.371513,0.000000 + 4.892011,52.372147,0.000000 + 4.892043,52.372730,0.000000 + 4.892870,52.372738,0.000000 + 4.893159,52.372669,0.000000 + 4.893540,52.372578,0.000000 + + + + + Rembrandthuis + + #style13 + + 4.901260,52.369530,0.000000 + + + + Hermitage Museum + + #style4 + + 4.902349,52.365234,0.000000 + + + + Museum Van Loon + + #style14 + + 4.893368,52.363453,0.000000 + + + + Rijksmuseum + + #style8 + + 4.885697,52.360321,0.000000 + + + + MuseumPlein + + #style3 + + 4.882607,52.359104,0.000000 + + + + Van Gogh Museum + + #style2 + + 4.880719,52.358593,0.000000 + + + + Amsterdam Historisch Museum + + #style12 + + 4.890461,52.370293,0.000000 + + + + Palace and National Monument + + #style9 + + 4.893594,52.372559,0.000000 + + + + diff --git a/index.html b/index.html index 39f1924..5f06693 100644 --- a/index.html +++ b/index.html @@ -2,77 +2,122 @@ - - + + + + - -
-
+ +
+
+
+
+ + + +
diff --git a/index2.html b/index2.html new file mode 100644 index 0000000..f1403f8 --- /dev/null +++ b/index2.html @@ -0,0 +1,108 @@ + + + + + + + + +
+ + + +//not actually using anything below here at this stage + var cycle_route_sections = [[[51.531281,-0.126429], [51.535126,-0.135183], [51.539288,-0.137157], [51.544041,-0.131493]],[[51.545483,-0.117588], [51.540943,-0.110893], [51.536991,-0.114841], [51.534752,-0.112610], [51.532402,-0.122137]]]; + + +var draw_section = function (map, cycle_route_section) { + + var cycle_route_section_lat_longs = []; + + for (i = 0; i < cycle_route_section.length; i++) { + cycle_route_section_lat_longs.push(new google.maps.LatLng(cycle_route_section[i][0], cycle_route_section[i][1])); + } + + var section = new google.maps.Polyline({ + path: cycle_route_section_lat_longs, + strokeColor: "#456789", + strokeOpacity: 1.0, + strokeWeight: 4 + }); + + section.setMap(map) +} + +function setMarkers(map, locations) { + + var marker_image_url = "http://google-maps-icons.googlecode.com/files/purple0" + var image = new google.maps.MarkerImage(marker_image_url, + // This marker is 20 pixels wide by 32 pixels tall. + new google.maps.Size(20, 32), + // The origin for this image is 0,0. + new google.maps.Point(0,0), + // The anchor for this image is the base of the flagpole at 0,32. + new google.maps.Point(0, 32)); + var shape = { + coord: [1, 1, 1, 20, 18, 20, 18 , 1], + type: 'poly' + }; + + for (var i = 0; i < locations.length; i++) { + //put the right number on the marker + var image = marker_image_url + (i + 1) + ".png" + var location = locations[i]; + var myLatLng = new google.maps.LatLng(location[1], location[2]); + var marker = new google.maps.Marker({ + position: myLatLng, + map: map, + icon: image, + shape: shape, + title: location[0] + }); + } +} diff --git a/style.css b/style.css new file mode 100644 index 0000000..32c1cde --- /dev/null +++ b/style.css @@ -0,0 +1,26 @@ +.map { + width: 700px; + height:500px + } + +#navigation { + width: 700px; + height: 30px; + } + +.tab { + width: 50px; + height: 30px; + display: inline-block; + color: #d3d3d3; +} + +.tab:hover { + background-color: #1e5b05; + color: #000000; +} + +.tab_selected { + background-color: #1e5b05; + color: #000000; +}