这个问题看起来应该很简单,但经过几天的研究和几个死胡同之后,BigQuery如果没有坚持基于用户的OAuth ,我似乎无法获得查询结果.有人有运气吗?我没有使用Google AppEngine我的应用程序,它托管在EC2.这是确切的情况:
User wants reporting data -->
Web server makes queries to BigQuery -->
Data is transformed for use in WebApp and returned to User.
Run Code Online (Sandbox Code Playgroud)
每当我关注Google示例时,我最终都会弹出一个网络浏览器,要求我选择一个用于身份验证的Google帐户.
我正在尝试打印使用Google Maps API v3创建的地图.地图包含一个多边形.我正在使用弹出方法尝试打印它:
var gmapPrint = function() {
var content = window.document.getElementById('map-canvas') // get you map details
var newWindow = window.open(); // open a new window
newWindow.document.write(content.innerHTML); // write the map into the new window
newWindow.print(); // print the new window
}
Run Code Online (Sandbox Code Playgroud)
地图打印得很好,但缺少多边形.起初,似乎在地图上绘制多边形之前弹出了打印对话框,所以我添加了一个setTimeout.这并没有解决问题.我也尝试过使用静态地图API,但是我的多边形边界中的点数超过了最大URL大小,即使在编码时也是如此.
有人有这个成功吗?