[英]Cannot interact with Bing Map on iOS; Android does not show polyline (Flex Mobile App, using Javascript API through StageWebView)
After being unable to solve this issue , I decided to try to implement my application using Bing Maps. 无法解决此问题后 ,我决定尝试使用Bing Maps实现我的应用程序。 I am trying to load a StageWebView with the Google Maps Javascript API inside a Flex Mobile application. 我正在尝试在Flex Mobile应用程序中使用Google Maps Javascript API加载StageWebView。 Everything works perfectly when I view this in a browser (IE, Chrome and Safari) and in the Flash Builder simulators. 当我在浏览器(IE,Chrome和Safari)以及Flash Builder模拟器中查看此文件时,一切工作正常。 On the actual devices I get varying results. 在实际设备上,我得到不同的结果。 I am using the StageWebView.loadString()
method to load my code in Flex. 我正在使用StageWebView.loadString()
方法在Flex中加载我的代码。
The iPhone displays the map and the shapes I put on it but does not allow me to intuitively interact with it (drag the map, zoom by pinching or double-tapping). iPhone显示了地图和我贴在其上的形状,但不允许我直观地与它进行交互(拖动地图,通过捏合或双击来缩放)。 It also does not display the interactions bar at the top left as it does in a browser. 它也不会像在浏览器中那样在左上方显示交互栏。
On an Android phone (and the BlackBerry Playbook), I still cannot interact with the map intuitively, but I get the interactions bar, which mostly works. 在Android手机(和BlackBerry Playbook)上,我仍然无法直观地与地图进行交互,但是我得到了交互栏,该栏通常有效。 However, the app will not display my polylines (it does display pushpins). 但是,该应用程序将不会显示我的折线(它会显示图钉)。
On both devices, when I tap or doubletap on the map to try to intuitively interact with it, the keyboard comes up. 在这两种设备上,当我点击或双击地图以尝试直观地与之交互时,都会弹出键盘。 Typing displays no text. 键入不显示任何文本。
Any ideas on what my be the issue? 关于我的问题有什么想法吗? Will I need to write my own intuitive interaction functions? 我是否需要编写自己的直观交互功能?
根据Alexander Farber的建议,我决定使用MapQuest的Flex / Flash移动API ,事实证明该API非常有效。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.