I wrote a small javascript file that enables you to add (almost) any
WMS layer to your google map. The javascript is at
http://globalcoordinate.com/jscript/WMSTiles.js . For a live example
go to
http://globalcoordinate.com/ and click the "LANDSAT" button.
Example code using the JPL Landsat Global Mosaic data server...
//////////////// BEGIN CODE SAMPLE //////////////////
var mapSpecs = [];
createMapSpecs();
mapSpecs.push(_GOOGLE_MAP_TYPE);
mapSpecs.push(_SATELLITE_TYPE);
wmsSpec =new _WMSMapSpec
("http://wms.jpl.nasa.gov/wms.cgi?request=GetMap&layers=global_mosaic_b...","Landsat");
mapSpecs.push(wmsSpec);
map = new GMap(document.getElementById("map"),mapSpecs);
//////////////// END CODE SAMPLE //////////////////
The constructor of the _WMSMapSpec object takes two params.
Param 1 is the WMS GetMap url. The WMSTiles javascript will append the
"bbox", "width" and "height" parameters on to the url.
Param 2 is the button text.
I have only tested this with a couple of WMS servers, but in theory it
should work with almost any. The bbox parameter in the url will be
written as latitude and longitude so this code will not work with UTM
type projections.
Comment here or email if you have questions. Have fun!