torsdag den 17. december 2009

Get JavaScript Access to Google’s Flash Maps API


Google Flash ...
/Sik


Flash the Google map ... Will we ever see a SilverLight API for GM ;-) ?
/Sik


Quote

Adam DuVander

When you want animated maps or zippier feedback than Google’s JavaScript mapping API can provide, you can use the Flash Maps API. Yes, even Google acknowledges that its popular, full-featured platform can’t do everything. Using the Flash API used to mean you needed to know Flash. Now, you can get the benefit, but still program in JavaScript.

Web developer Nianwei Liu has released a wrapper API for Flash Maps, called Map Bridge:

“The concept is very simple: programing a flash component with JavaScript, similar to what you do with GStreetViewPanorama. This library exposes all core classes in the Flash API and packages them in an easy to use way.”

The code then becomes quite similar to the standard Google Maps API, as well as other mapping platforms. A map is attached to a DOM element via JavaScript. An included library takes over to insert the map in its place, only instead of loading tiles via JavaScript, it calls Flash functions.

JavaScript Flash Maps

An example within the announcement post shows driving directions with an animated fly-over. Like Liu’s mention of Street View, this shows why Flash can be useful for mapping. Even the geniuses that originally created Google Maps can’t get an experience as smooth as what Flash provides.

The highly technical and curious will appreciate that Map Bridge is open sourced. Like other mapping wrapper APIs, such as Mapstraction, you can alter and contribute to the codebase. Or, just find out how it works. Perhaps other API providers will learn from Map Bridge, making Flash APIs accessible to more developers by including JavaScript wrappers. [...]


Read more: http://blog.programmableweb.com/2009/12/17/get-javascript-access-to-googles-flash-maps-api/

Ingen kommentarer:

Send en kommentar