手机缺口中的Google地图V3会加载map.google.com页面

时间:2014-10-15 12:56:59

标签: cordova google-maps-api-3

在我的手机间隙应用中,我加载了一个包含谷歌地图V3的页面。它表现得很好。但是当我触摸地图或尝试移动标记完全卸载整个index.html并转移到map.google.com时,我只剩下选项就是杀死该应用程序。

1 个答案:

答案 0 :(得分:1)

我也遇到了这个问题......结果发现我的用户无意中点击了谷歌图标(地图的左下角)或条款和条件(地图的右下角)。这些链接到谷歌网站,并远离index.html(和phonegap / cordova javascript上下文)弹出会话。

如果您遇到了什么,请查看此链接(Cordova Phonegap and Google Maps v3 javascript api: How to add backbutton functionality when clicking either the license link or the Google maps logo),了解如何优雅地处理此问题。

相关问题