Friday, January 27, 2006

Layering WMS services using GoogleMaps API V2


NOTE: I changed this posting substantially on February 1st as the previous code did not work when using GPolyline methods. This code now works with polylines.

Here is my method for creating GoogleMaps API V2 WMS Layers. In version 1, I started with code developed by Brian Flood and Kyle Mulka and ended up re-writing most of that class for V2 using code and examples from Mike Williams. The dd2Mercator conversion bits can be left off if dealing with small scale maps only.

Click here for a working example of this code. NOTE: On June 9th, i deleted the code references in this blog and instead refer people to view the source of the working example linked to above.