Changeset 8843 for src/website_ontwerp/script/gmap.js
- Timestamp:
- Feb 21, 2011, 11:51:23 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.