Adding Your Own WMS Layers to a Google Map

By: Just van den Broecke.

The Google Maps API allows adding WMS maps from any WMS server. This was undocumented in Google Maps v1, but v2 allows much more custimization. You can even overlay transparent maps like roads or whatever. Based on work done by Brian Flood and Kyle Mulka I have created a simple JavaScript library, gmap-wms.js through which you can add your own WMS layers to a Google Map. The example below is trivial using a single transparent GIF image by faking a WMS server. Note (11.feb.2007) the original examples were based on Gmap v1. I am now reworking the examples to work with v2, using the documented API.

$Id: gmap-wms-1.html,v 1.8 2008-11-05 14:06:20 just Exp $