Tuesday, 6 January 2009

Google Earth API - Embed in Web Browser

With the Google Earth API, you can embed and view actual Google Earth imagery in a web browser (you'll need the plug-in). I've been doing some other work relating to dynamic mapping so was looking for ways to implement Google Earth's time lapse functionality in a web browser rather than running it via a kml/kmz file which loads into Google Earth. That's how I came across this. I put the page here rather than on the blog because I wanted it to be separate:

http://ajrae.staff.shef.ac.uk/ge1.html - if your browser says 'load failed' or something similar, just click 'Ok' and where the Google Earth image should be you can install the plug-in from there.

Here's some images:
In the image above, you can see the search box. If I enter, 'Glasgow', for example, it will automatically zoom to here:

If you have a place that occurs in more than one location, then you may have to insert a comma and then enter the city or country it is in. For example, in the image below I've searched for Hillsborough, Sheffield and it's taken me right there...