[英]Google Maps Fusion Tables Query
I'm trying to filter the data fusion tables return.我正在尝试过滤返回的数据融合表。
This is my code:这是我的代码:
// Set Fusion Table Layer
layer = new google.maps.FusionTablesLayer({
query: {
select: 'geometry',
from: fusionTable,
where: whereQuery
}
});
whereQuery equals to this: name =' Antelope Valley | whereQuery 等于: name =' Antelope Valley | San Fernando |
圣费尔南多 | East Area |
东区 | South Bay |name =' Antelope Valley |
南湾|name ='羚羊谷| San Fernando |
圣费尔南多 | East Area |
东区 | South Bay '
南湾'
However, it is not firing correctly.但是,它没有正确触发。
Is there something I'm missing?有什么我想念的吗?
Thanks!谢谢!
try using the IN statement in your where clause, ie:尝试在您的 where 子句中使用 IN 语句,即:
name IN ('Antelope Valley','San Fernando','East Area','South Bay')
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.