admin管理员组

文章数量:1352869

Visit with a mobile device - the scrolling is super smooth even with floating toolbars. How are they acplishing 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.

Visit http://www.google./gmm with a mobile device - the scrolling is super smooth even with floating toolbars. How are they acplishing 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.

Share Improve this question edited Nov 24, 2010 at 10:57 John Goering asked Jul 28, 2010 at 9:17 John GoeringJohn Goering 39.1k59 gold badges163 silver badges246 bronze badges 1
  • GWT maybe the future but most google apps like maps, mail, search, docs do not use gwt. One can easily see this by investigating the javascript particularly the bootstrapper in gwt does not appear in the other aforementioned apps. – mP. Commented Nov 25, 2010 at 8:04
Add a ment  | 

4 Answers 4

Reset to default 4 +25

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.

Scrolling in mobile WebKit has issues: http://www.quirksmode/webkit.html . Look for overflow.

The solution to this is iScroll.

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?

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.

本文标签: javaHow does the scrolling on quotGoogle Maps for Mobilequot workStack Overflow