调试 google.maps.FusionTablesLayer
创建FusionTablesLayer时是否有failureCallback?有没有办法知道您的查询是否有问题?或者从查询中加载了多少行?
var layer = new google.maps.FusionTablesLayer({
query: { select: 'address',
from: '198945',
where: 'ridership > 5000' }
});
Is there any failureCallback when creating a FusionTablesLayer? Is there a way to know if there is a problem with your query? Or how many rows were loaded from the query?
var layer = new google.maps.FusionTablesLayer({
query: { select: 'address',
from: '198945',
where: 'ridership > 5000' }
});
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
对你的两个问题的简短回答是否定的。
我依靠未记录的 Fusion Table JSONP 支持来轻松测试查询,而无需担心 GMap 内容,并从特定查询中检索行计数。
Robin Kraft 在以下博客中使用 jQuery 记录了这种 JSONP 方法:
http://www.reddmetrics.com/2011/08/10/fusion-tables-javascript-query-maps.html
旧版本上也对此进行了讨论FT API 谷歌集团。
埃里克
The short answer to both your questions is no.
I've relied on the undocumented Fusion Table JSONP support to both easily test queries without worrying about GMap stuff and as well to retrieve the row count from a particular query.
Robin Kraft documented this JSONP approach using jQuery at this blog:
http://www.reddmetrics.com/2011/08/10/fusion-tables-javascript-query-maps.html
As well there has been discussion of this on the old FT API Google Group.
Eric