I have upgraded the GPX Viewer mashup script to version 2 of the Google Maps API. There are only some minor changes to the API and some of the objects used. It doesn’t make the script any better, but now it is more likely to be compatible with future versions of the API.
As part of the update, I added an extra parameter to CenterAndZoom to set the type of map so that it can be set as part of the initialization. You should pass in one of G_NORMAL_MAP, G_SATELLITE_MAP, or G_HYBRID_MAP (or another custom map type you may have created).
The order of initialization is now more strict. As part of the update I tried to make the center and zoom more efficient by calculating the bounding box while adding the points to the map. However, the new API requires that the map position and zoom be set before anything else is done, so I have reverted that change. The code is still in there, but it is commented out for now.