【发布时间】:2014-01-29 06:50:56
【问题描述】:
我正在尝试为融合表图层创建滑块。我的问题是如何设置滑块来查询一个 FusinTable 中的不同列。现在我可以在一列中的数据之间滑动。我需要在 2004-2009 年的不同年份之间滑动,并且每年的数据都在与年份相同的不同列中。
// define the JQuery Slider
$(function() {
$('#slider').slider({
max: 13000000,
min: 1000000,
step: 100000,
value: 0,
slide: function(event, ui) {
document.getElementById("slider-value").innerHTML = ui.value + " Population (Thousends)";
layer_0.setOptions({
query: {
select: "Population",
from: "1ExY2P7DxDzTwjz67cs1GPgWKWDPUx5mXE3uZ2ME",
where: "Population <= " + ui.value
}
【问题讨论】:
标签: jquery google-maps-api-3 google-fusion-tables uislider