Home About Links How To Use MyStuff Search

Getting WMS data on Google Maps

-> back to the notes page

Creating floating WMS layers for the map

In this map, I added a wms layer that sits on top of all the base layers in the map. This layer is created from a WMS feed of USFS roadless areas from mapserver that is operating on the same server that this page is coming from. You notice that it is visible on top of all the base layers.

On Roadlessland.org I used Mapserver as a WMS server to create tiles from ESRI shapefiles of all the roadless areas, wilderness areas and other forest service areas.

On Roadlessland I also added a new base layer from a USGS WMS service tht serves tiles of topographical maps. Here is an example of how to do that.

To put wms layer in your map on top of all your base layers, you use the javascript file developed by John Deck at Berkeley (wms236.js). Then you use a function built in to Google Maps called "GTileLayerOverlay"

Here is the code for the map on this page: