Google Maps WFS Interface
I’m currently working on a way to use OGC‘s WFS (Web Feature Service) to plot points, polygons, etc. onto Google Maps. I’ve got it to work pretty well for simple points, polylines, and polygons. Give this a try:
I’ll explain a little of how this works. First, it loads the Google Map. Then, it takes the lat/long bounds of the Google Maps, adds a buffer region around the bounds and sends a request for the bounds plus the buffer region to the WFS url. When the request comes back, it clears the map of overlays and marks all of the points in the WFS response XML on the map. It does this cycle every time you change the map type in the upper right.
So, its not complete yet, but it works well for what it is supposed to do right now.
- DONE - Draw WFS Polygons as GPolylines.
- Tile (similar to Google image tiles) and cache WFS responses (which are just XML files)
- Put attributes of Points into info windows
UPDATE: Worked a little more on it, and it works much better in IE. Something is screwy with my version of FF: 1.0.3.