This ENVI user function will add a “Find location using Google Maps” in the Tools menu of the display window for any image with map information. Selecting it will bring up the location of the image with Google Maps in your default browser.
Also included is a helper routine called `MG_OPEN_URL` which is useful in general to open an URL in the default browser from IDL. It will work on any IDL platform. On Unix platforms, the first time it is used it requires the user to locate the web browser. It stores this location and uses it for future calls. This is not necessary on Windows and Mac since they have a nice way to start the default application for URLs.
ENVI and an internet connection are required to use this ENVI user function.
1. Download [`mg_google_lookup.sav`](http://michaelgalloy.com/wp-content/uploads/2006/04/mg_google_lookup.sav) or the [source code](http://michaelgalloy.com/wp-content/uploads/2006/04/mg_google_lookup-10.zip).
2. Move the `.sav` file or `.pro` files into the `save_add` directory of your ENVI distribution.
3. On UNIX (but not Mac or Windows) platforms, the first time `MG_GOOGLE_LOOKUP` is used it will ask for the location of the web browser you want to use to display the Google Maps.