source: src/website_ontwerp/script/gmap.js@ 8843

Last change on this file since 8843 was 8843, checked in by dennisw, 14 years ago

website_ontwerp - gheat implementatie, stuk heatmap in USA (standaard testdata uit gheat)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Date Revision
  • Property svn:mime-type set to text/plain
File size: 560 bytes
Line 
1 function initialize() {
2 var myLatlng = new google.maps.LatLng(41.257989,-98.642582);
3 var myOptions = {
4 zoom: 4,
5 center: myLatlng,
6 mapTypeId: google.maps.MapTypeId.ROADMAP
7 }
8 var map = new google.maps.Map(document.getElementById("heatmap"), myOptions);
9 map.overlayMapTypes.insertAt(0, heatmap);
10 }
11
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 TracBrowser for help on using the repository browser.