Google Fusion Tables 中的热图问题
这是我用于搜索表格和制作叠加层的两个功能。 (地图是在不同的函数中创建的)。由于某种原因,点图可以正常工作,但热图不能与 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);
}
These are my two functions for searching my table and making overlays. (the map is created in a different function). For some reason, the dotmap one works fine, but the heatmap one doesn't work with the where clause. Any insight?
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);
}
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我认为问题与这里提到的相同:
https://groups.google.com/forum/# !topic/fusion-tables-users-group/MkZ8KJT6oic
简而言之,Google Fusion Tables 中的热图有点不稳定。您可能想使用类似 gheat 的东西,它以某种方式起作用,但不像我那么好和简单通缉。
I think the problem is the same as mentioned here:
https://groups.google.com/forum/#!topic/fusion-tables-users-group/MkZ8KJT6oic
In short, Heatmaps in Google Fusion Tables is a little flaky. You might want to use something like gheat which somehow worked, but not as nice and simple as I wanted.