Andrew Trice

Real-World Rich Internet Applications

20080530 Friday May 30, 2008

Google Earth API + Flex

On Wednesday, Google released the Google Earth API, which is basically a browser plugin for Google Earth. This is a really great achievement for web based mapping. Using the google earth plugin, you can add 3D capability to your web applications, and it is completely script-able using the existing JavaScript Google Maps API.

Of course, the next logical step for me was to get this working with Flex. Here's an example of it in action. The Google Earth plugin is required for this example.



You can type in a location, and it will go there. You can also toggle the nav controls, and the grid overlay.

I had to do some html layering tricks to get it to display over the flex application, and there are a few clipping issues when you resize it, but I'm sure that i can work these issues out over time.

You can get more information about the Google APIs here:
Google Earth API
Google Earth API Examples
Google Maps API
Google Earth Blog

Posted by andrewtrice | May 30 2008, 09:29:34 AM EDT
XML