This site combines datasources derived from a MapGuide Open Source (MGOS) Server and Google Maps. First, WMS layers streamed directly from a MapGuide Open Source Server can be overlain on a standard Google Map. In this application, this was done with the help of some code written by Brian Flood et al. that constructs a standard WMS call when using Google Maps custom tiled layers (GTileLayer). More information on this can be found on Brian's blog. We recently switched this site to use the new GTileLayerOverlay objects for the WMS layers instead of having to define custom map types. This was introduced with API v2.62 and is a much nicer solution.
Second, the MGOS API was used to dynamically stream Google Map marker points whenever the map view changes. Custom ASP.NET (C#) code was written to take the bounding box of the current Google Map view, use that as the basis for a spatial overlay query against the parcel datasource, and then extract the parcel centroids lat and lon. The complete XML marker file is then constructed from this and any related attribute information which is what you see in the information window in Google Maps when you click on one of these points. The client-side JavaScript that uses the Google Maps events was written with help from the Google Maps API Tutorial and the Google Maps API discussion group.
Andy Morsell, P.E. Owner Spatial Integrators, Inc.
|
|