1

这是我用于搜索我的表格和制作覆盖的两个功能。(地图是在不同的功能中创建的)。出于某种原因,点图可以正常工作,但热图不能与 where 子句一起使用。有什么见解吗?

function heatmap() {
    var layer = new google.maps.FusionTablesLayer({
        query: {
            select: 'LOCATION',
            from: '1614684',
            where: "CRIME = 'HOMICIDE'"

          },

          heatmap: {
            enabled: true
          }
        });

        layer.setMap(map);
}
function dotmap() {


    var layer = new google.maps.FusionTablesLayer({
      query: {
        select: 'LOCATION',
        from: '1614684',
        where: "CRIME = 'HOMICIDE'"

      }
    });
    layer.setMap(map);
}
4

1 回答 1

3

我认为问题与此处提到的相同: https ://groups.google.com/forum/#!topic/fusion-tables-users-group/MkZ8KJT6oic

简而言之,Google Fusion Tables 中的热图有点不稳定。您可能想使用类似gheat的东西,它以某种方式起作用,但不像我想要的那么好和简单。

于 2012-01-07T07:41:20.277 回答