gpt4 book ai didi

javascript - Fusion Tables 查询不适用于 Google Maps JS API v3

转载 作者:行者123 更新时间:2023-12-03 06:02:05 24 4
gpt4 key购买 nike

我正在尝试查询融合表并使用 Cordova 将其显示在我的谷歌地图应用程序上。

我的问题是,我发送的查询无法识别,并且无论我在“where”约束中添加什么内容,都会返回整个表。

query: {
select: 'Koordinat',
from: '1xkSyi8Wew5jBU4CCk1dKNaFS6UEd4bz0_gdkhXhC',
where: "Ikon = '6'"
}

我尝试更改数字和文本之间的字段类型,并尝试在 where 子句中使用双引号和单引号,但它只是显示 map 上的所有行。

fiddle 如下: https://jsfiddle.net/mdokur/fnxjzL61/2/

最佳答案

问题是该查询无效

where: 'Ikon = 1 OR Ikon = 4 OR Ikon = 5 OR Ikon = 8 OR Ikon = 10 OR Ikon = 11 OR Ikon = 12',

参见Row and Query SQL Reference :

"OR is not supported. (If you are looking for OR, consider the IN operator. It will do the trick in certain queries)".

应该是这样

where: 'Ikon IN (1, 4, 5, 8, 10, 11, 12)',

关于javascript - Fusion Tables 查询不适用于 Google Maps JS API v3,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39712539/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com