iPhone 谷歌地图 v3 在捏缩放后平移
我在为 iPhone 开发 Web 应用程序时遇到问题。当我访问 等简单示例时http://code.google.com/intl/sv-SE/apis/maps/documentation/javascript/examples/map-simple.html 在 iPhone 中,当我松开手指时进行捏缩放地图平移从屏幕上。这使得地图最终出现在我缩放到的位置之外的其他位置。
有什么方法可以防止捏缩放释放后地图平移吗?
I have a problem developing a web application for iPhone. When I visit a simple example like http://code.google.com/intl/sv-SE/apis/maps/documentation/javascript/examples/map-simple.html in an iPhone and do pinch zoom the map pans when I release the fingers from the screen. This makes the map end up somewhere else than the place I zoomed to.
Is there some way to prevent the map from panning after pinch zoom release?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
不幸的是,iPhone 使用的触摸屏技术(尤其是 Cocoa)在移动设备上查看网络应用程序时可能会产生一些奇怪的效果。
我无法理解为什么,但似乎这种多点触控手势(例如捏合)对非本机应用程序产生了相对奇怪的影响。
我唯一可以建议的是使用 Objective-C 并开始将您的应用程序移植为在 iDevice 上作为应用程序运行。这将消除您遇到的问题,但不会消除您尝试开发网络应用程序的问题。
Unfortunately, the iPhone's use of touch screen technology - especially Cocoa - can have some odd effects when it comes to viewing a web app on a mobile device.
I cannot fathom why, but it seems like such multi-touch gestures, such as pinching, have a relatively odd effect on non-native applications.
The only thing I can suggest is using Objective-C and getting to work on porting your application to run as an app on the iDevice. This will remove the problems you are having, but it will not rid you of the issue that you are trying to develop a web app.