Changeset 8843
- Timestamp:
- Feb 21, 2011, 11:51:23 AM (14 years ago)
- Location:
- src/website_ontwerp
- Files:
-
- 200 added
- 3 deleted
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
src/website_ontwerp/css/style.css
r8836 r8843 9 9 10 10 #wrapper{ 11 background-image:url('../img/bg. png');11 background-image:url('../img/bg.jpg'); 12 12 background-repeat: no-repeat; 13 13 width:960px; … … 22 22 width:910px; 23 23 height:100px; 24 background-image:url('../img/header. png');24 background-image:url('../img/header.jpg'); 25 25 padding-top:21px; 26 26 padding-left:50px; -
src/website_ontwerp/index.html
r8836 r8843 9 9 </head> 10 10 11 <body onload="initialize()" >11 <body onload="initialize()" onunload="GUnload()"> 12 12 <div id="wrapper"> 13 13 <div id="header"> 14 <a href="index.html"><img src=" img/logo.png" border="0" style="float: left;"/></a>14 <a href="index.html"><img src="http://localhost:8080/img/logo.jpg" border="0" style="float: left;"/></a> 15 15 <font style="font-size:24px; color:white;">Stichting Wireless Leiden</font><br /> 16 16 <font style="font-size:46px; color:white;">Heatmap</font> … … 18 18 <div id="content"> 19 19 <h1>Info</h1><br /> 20 Rechts is een implementatie van Google Maps te zien met 3 lat/long punten die een polygon vormen. 20 Rechts is een heatmap te zien met standaard testdata uit gheat. Let op dat het hier alleen om de USA gaat, en dat niet op elk zoomlevel een plaatje te zien is.<br /><br /> 21 Inzoomen op Dallas geeft op het moment het beste resultaat. 21 22 </div> 22 23 <div id="heatmap"></div> -
src/website_ontwerp/script/gmap.js
r8836 r8843 1 1 function initialize() { 2 var myLatlng = new google.maps.LatLng( 52.164309,4.493694);2 var myLatlng = new google.maps.LatLng(41.257989,-98.642582); 3 3 var myOptions = { 4 zoom: 14,4 zoom: 4, 5 5 center: myLatlng, 6 6 mapTypeId: google.maps.MapTypeId.ROADMAP 7 7 } 8 8 var map = new google.maps.Map(document.getElementById("heatmap"), myOptions); 9 9 map.overlayMapTypes.insertAt(0, heatmap); 10 } 10 11 11 var bermudaTriangle; 12 var triangleCoords = [ 13 new google.maps.LatLng(52.162197,4.490733), 14 new google.maps.LatLng(52.162092,4.497428), 15 new google.maps.LatLng(52.159723,4.493222), 16 new google.maps.LatLng(52.162197,4.490733) 17 ]; 18 19 // Construct the polygon 20 // Note that we don't specify an array or arrays, but instead just 21 // a simple array of LatLngs in the paths property 22 bermudaTriangle = new google.maps.Polygon({ 23 paths: triangleCoords, 24 strokeColor: "#FF0000", 25 strokeOpacity: 0.8, 26 strokeWeight: 2, 27 fillColor: "#FF0000", 28 fillOpacity: 0.35 29 }); 30 31 bermudaTriangle.setMap(map); 32 33 } 12 var heatmap = new google.maps.ImageMapType({ 13 getTileUrl: function(coord, zoom) 14 { 15 return 'classic/' + zoom + '/' + coord.x + ',' + coord.y + '.png'; 16 }, 17 tileSize: new google.maps.Size(256, 256), 18 isPng: true 19 });
Note:
See TracChangeset
for help on using the changeset viewer.