Google maps api 3 Fusion table suppressInfoWindows不工作
我的suppressInfoWindows有一个问题,当在map选项中声明时,它在我的地图上似乎不起作用。有什么想法吗Google maps api 3 Fusion table suppressInfoWindows不工作,google-maps-api-3,google-fusion-tables,Google Maps Api 3,Google Fusion Tables,我的suppressInfoWindows有一个问题,当在map选项中声明时,它在我的地图上似乎不起作用。有什么想法吗 function updateLayerQuery(layer, sector, county) { var where = "Sector = '" + sector + "'"; if (county) { where += " AND County = '" + county + "'"; }
function updateLayerQuery(layer, sector, county) {
var where = "Sector = '" + sector + "'";
if (county) {
where += " AND County = '" + county + "'";
}
layer.setOptions({
query: {
select: 'geometry',
from: '1xeq1_MLccx-A2spFLz_nc35xQwsBZNhwgGnUn1wY',
where: where,
suppressInfoWindows: true
}
CodePen上的完整代码是对象的属性,而不是对象的属性
function updateLayerQuery(layer, sector, county) {
var where = "Sector = '" + sector + "'";
if (county) {
where += " AND County = '" + county + "'";
}
layer.setOptions({
suppressInfoWindows: true, // should be here
query: {
select: 'geometry',
from: '1xeq1_MLccx-A2spFLz_nc35xQwsBZNhwgGnUn1wY',
where: where,
}