Blog

Using Maps on Mobile devices is a challenge, especially when powerful features are needed.

March 23, 2010 in Blog

iPhone and Andriod now fully support the standard JavaScript Google Maps API which makes it easier to develop accross platforms.

Care must be taken in mobile designs though due to:

  • Screen size
  • User interaction
  • Speed

For example, iPhone Safari is 10x slower to parse JS than desktop with limited caching.  Networks also induce significant latencies which often dominate load times relative to total file sizes.  Improve performance by compiling/obfuscating code.

Current Gmaps API (v2) is poorly designed for mobile apps.  v3 means to address these concerns and enhance mobile support.

  • Only 35K in size (vs 190Kb in current v2)
  • Static map is built in
  • Optimized for mobile devices
  • ~9s to load js and tiles on v3 vs over 18s on v2
  • Chrome and iPhone supported
  • no domain keys required!
  • Default UI construct so app can by automatically keep up with control updates
  • New geocoding API

v3 is based on a Model-View-Controller architecture to allow fast loading of initial models and wait for on-demand loading of required views.  New features can be added as additional views/controllers with less impact to the overall code base.

Building Advanced 3D Geographical Applications for the Web with the Google Earth API

March 23, 2010 in Blog

By Roman Nurik from the Google team.

This is the final geo session for Google I/O 2009.  Links for Roman’s presentation can be found HERE.

As Roman pointed out, this marks the 1 year anniversary of the Google Earth API.  New features over the last year include:

  • Mac Support
  • KML Tour Playback
  • Underwater Terrain
  • Mars mode
  • Enterprise server connectivity
  • Over 80 samples in the demo gallery

Roman introduced ‘My Earth’ a mashup of the new Google MyMaps Data API and the Google Earth API.

MyEarth MyMaps on Google Earth API

To support the app, he’s released new Earth API open source libraries:

  1. geojs which provides common geo math and geometries
  2. earth-api-utility-library (GEarthExtensions)
  • creates KML objects via ‘JSONic’ methods
  • new methods for feature by id, dom walk, and ‘clear’ features
  • Animations/effects framework
  • 1-line draggable placemarks and line strings
  • Screen overlay ‘Buttons’ including a control set like MyMaps geometry editing
  • Apache 2.0 License

Other Recent Developments G_SATELLITE_3D_MAP has been upgraded significantly:

  • all KML features supported in ggeoXML will now transer to the Earth mode
  • it appears that javascript based updates to ggeoXML now propagate to the Earth mode
  • 3D objects within KML called by ggeoXML will now show in Earth mode even though don’t in the 2D modes
  • switches to and from the Earth mode now include nicer animations in tilt and rotation

All in all a great session with some fun new tools!

This entry was posted on Thursday, May 28th, 2009 at 11:04 pm and is filed underDeveloperGoogle Earth API. You can follow any responses to this entry through theRSS 2.0 feed. You can leave a response, or trackback from your own site.

wordpress