geo2web.com

Review of GIS GPS GEO and MAPs technology

geo2web.com header image 2

New utility function for Google Mapplets: GAsync()

November 2nd, 2007 · No Comments · GIS and GEO technology, Maps

::: via :::

The Mapplets API is like the Maps API with a twist: asynchronous
calls. If you’ve ever used XMLHttpRequest then you’ve dealt with
asynchronous calls before, but writing fast Mapplets can require
keeping track of several requests at the same time.

While working on the Zvents mapplet, Michael Geary developed a nifty
utility function called GAsync(). This lets you make several requests
in a single call, like:

GAsync( map, 'getSize', 'getBounds', 'getCenter', function( size, bounds, center ) { // search using size, bounds, and center });

Mike has kindly donated this function to the Mapplets API so that
everyone can use it. We hope that it helps you write fast and simple
code for your Mapplets!

For more information on the creation and use of GAsync, check out Mike’s blog post about it. The Mapplets API docs and forum will help you get started on your own Mapplet.

Tags:

0 responses so far ↓

  • There are no comments yet...Kick things off by filling out the form below.

You must log in to post a comment.