http://code.google.com/apis/maps/documentation/v3/overlays.html#Polygons
When I query for the polygons, I add a ".geojson(precision=6)" to the
end of the query. I then do this:
result['shape'] = json.loads(x.shape.geojson)
Where "shape" is the name of my PolygonField. I ship that via AJAX
over to the client. On the client:
var pointArray = new google.maps.MVCArray();
for (var pointIdx = 0; pointIdx <
airspaceData.shape.coordinates[0].length; pointIdx++) {
var point = airspaceData.shape.coordinates[0][pointIdx];
pointArray.push(new google.maps.LatLng(point[1], point[0]));
}
var polyline = new google.maps.Polyline({
map: gmap,
path: pointArray,
strokeColor: '#0000FF',
strokeOpacity: 0.6,
strokeWeight: 4
});
That's the general sketch. Let me know if you need more details.
Dave