简体   繁体   English

谷歌地图融合表查询

[英]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.

相关问题 Google 地图 - 具有重叠多边形的融合表 - Google Maps - Fusion Tables with Overlapping Polygons 使用 Google Cloud Data Fusion 执行自定义 SQL 查询 - Perform custom SQL query with Google Cloud Data Fusion 融合表限制 - fusion tables limitation 使用 Google Fusion 创建的标记的多个过滤器 - Multiple filters for Markers created using Google Fusion 使用数据融合的 Oracle 到大查询 - Oracle To Big Query using Data Fusion 仅移动已读取 Google Cloud Data Fusion 管道的文件 - Move only files that were read Google Cloud Data Fusion pipeline Google Cloud Data Fusion 无法访问来自另一个项目的数据,即使已授予访问权限 - Google Cloud Data Fusion failing to access data from another project, even though the access is granted 从云数据融合管道连接到谷歌云 sql 用于 postgres 的问题 - Issue connecting to google cloud sql for postgres from cloud data fusion pipeline Google Cloud Spanner 通过 Cloud Data Fusion 或其他方式实时更改数据捕获到 PubSub/Kafka - Google Cloud Spanner real time Change Data Capture to PubSub/Kafka through Cloud Data Fusion or Others 查询多个分区表 - Query multiple partitioned tables
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM