SF Neighborhoods using an undocumented GPolygon overlay... details below the map

SF Neighborhoods using an undocumented GPolygon feature in the current Google Maps API v2.49. I've extracted and cleaned up the code a bit so that you can use polygons yourself. Just take a look at poly.js and add this after you add the API javascript. Then you can use GPolygon with only a few caveats:

I think of this code as a preview of what's to come. Try it out before it's actually released, I guess.

To create a new polygon, call new GPolygon(polylines, fill?, color?, opacity?, outline?). polylines is an array of GPolylines, fill is a boolean indicating whether you want the polygon filled or not, color is the color of the polygon's interior (the outline color is determined by the polylines), opacity determines the fill's opacity, and outline is a boolean determining whether the outline polylines are drawn or not.

Enjoy! (Chris Smoak - 3 May 2006)