热图融合表仅显示1个纬度经度点

时间:2013-11-17 21:06:25

标签: google-maps google-fusion-tables heatmap

这是我的纬度和经度点融合表的链接:https://www.google.com/fusiontables/DataSource?docid=15fqwXO49M-kIOrHVSfE8J4yVsfuD4ySEkZ28494#rows:id=1

我正在尝试使用纬度和经度点创建热图,由于某种原因,只显示1点。

Here is my code:

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Flickr Data Visualization Map</title>

<style>
  html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
  }

  #map_canvas {
    width: 100%;
    height: 100%;
  }
</style>

<script src="https://maps.googleapis.com/maps/api/js?v=3.exp&sensor=false"></script>
<script>


  var map;


  function initialize() {
    map = new google.maps.Map(document.getElementById('map_canvas'), {
      center: new google.maps.LatLng(37.09024, -95.712891),
      zoom: 3,
      maxZoom: 20,
      mapTypeId: google.maps.MapTypeId.ROADMAP
    });




 var layer = new google.maps.FusionTablesLayer({
  query: {
  select: 'Location',
  from: '15fqwXO49M-kIOrHVSfE8J4yVsfuD4ySEkZ28494'
},
  heatmap: {
  enabled: true
  }
});
 layer.setMap(map);

}   

google.maps.event.addDomListener(window, 'load', initialize);
</script>
</head>

<body>
  <div id="map_canvas"></div>
  </body>
</html>

0 个答案:

没有答案