Google has now stopped its Earth API and Maps API is a paid for API nowadays. Some capabilities have also been either removed or changed. Therefore, I had to remove all examples of VizMap applications I had created. I didn’t remove the entire topic as I thought some of the code may still be useful with some modifications. 

javaScript: Flying around and asynchronicity in google Earth

This relates to Data Driven Mapping applications and the Javascript HowTo section

Google Maps Api

You will find tons of content on Google Maps, most of which is described much better than I can. In this section I will cover the small items of interest that I found to be hard to track down when I was developing this application.

Deciding the zoom level and centering a map

With google maps you can create ‘bounds’ which is essentially the area you want shown by default when the map starts up. The zoom level can also be adjusted to be appropriate to that ‘bounding box’. However when you only have one point it zooms up real close, so it’s a bit messy. Here is my work around for that where I set a default zoom level, either arriving as a URL parameter or a default.

Create a marker on the map

Here is how to create a marker for each data item and associate an event with a click on that marker

Marker click event

When one of my markers is clicked I bring up a tabbed infowindow. Tabbed infowindows are not supported directly by Google Maps V3. See Creating a tabbed Google Mapping InfoWindow for how to do this.

As usual questions, feedback and comments are welcome at our forum. Now lets take a look at more javaScript snippets from this application

For help and more information join our forum, follow the blog or follow me on Twitter