“Google 手机地图”上的滚动如何进行?工作?
使用移动设备访问 http://www.google.com/gmm - 滚动超级流畅即使使用浮动工具栏。他们如何使用 GWT 实现这一目标?
更新
我的意思是移动浏览器看到的网站,而不是本机应用程序。我总是假设任何 Google Web 应用程序都是 GWT - 我想我的假设是错误的。
Visit http://www.google.com/gmm with a mobile device - the scrolling is super smooth even with floating toolbars. How are they accomplishing this with GWT?
Update
I mean the site as seen by a mobile browser, not the native app. And I always assumed any Google web apps were GWT - I guess I assumed wrong.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
我没有看到任何表明他们正在使用 GWT 的信息。根据网站底部的链接,他们要么告诉人们使用已安装的本机 Google 地图应用程序 (iPhone),要么将他们推荐到一个网站,该网站将为他们碰巧使用的任何移动平台下载本机地图应用程序正在使用。
我开发了几个 Google 地图应用程序,一个使用地图 APIv3 的纯 Javascript 版本,另一个使用 GWT。即使是使用 v3 API 的非常简单的地图(针对移动设备进行了优化),也无法像我尝试过的任何平台上的本机 Google 地图应用程序那样流畅地滚动。
I don't see anything that indicates they're using GWT. Based on the links at the bottom of the site, they're either telling people to use an already-installed native Google Maps app (iPhone) or referring them to a site that will download a native maps app for whichever mobile platform they happen to be using.
I've developed a couple of Google Maps apps, one using the plain Javascript version of the maps APIv3, and another using GWT. Even a very plain map using the v3 API, which has optimizations for mobile devices, doesn't have scrolling anywhere near as smoothly as the native Google Maps app on any of the platforms I've tried.
在移动 WebKit 中滚动存在问题: http://www.quirksmode.org/webkit.html 。查找
溢出
。解决这个问题的方法是iScroll。
Scrolling in mobile WebKit has issues: http://www.quirksmode.org/webkit.html . Look for
overflow
.The solution to this is iScroll.
如果您使用 CSS 放置浮动工具栏,那么它们会比使用 JavaScript(或 GWT evet 处理程序)更新其位置时保持得更干净。当然,这仅适用于您滚动页面内容的情况,但这里看起来并非如此。
CSS3 支持动画 - 也许它们会查看您的拖动手势,确定您移动的速度,然后将速度应用于构成地图的图像?
If you use CSS to place the floating toolbars, they'll stay put more cleanly than they will if you use JavaScript (or GWT evet handlers) to update their positions. Of course, this would only apply if you were scrolling around the content of a page, and it doesn't look like that's the case here.
CSS3 supports animations - perhaps they're looking at your drag gesture, determining the speed you're moving, and then just apply velocities to the images that make up the map?
移动版谷歌地图并不是使用网络技术完成的,它是原生编写的,可能是用 C 语言编写的。对于大多数东西来说,这会更快......类似的动画在 Android 上运行流畅,尤其是 iPhone 在浏览器或网络视图。
Google maps for mobile is not done using web technology, it's written natively, probably in C. Which is going to be WAY faster for most stuff....similar animations that run smoothly natively on android and especially iphone run much more jerkily in the browser or webviews.