Background:
I’m trying to use a Google Map as an interface to mark out multiple polygons, that can be stored in a Postgres Database.
The Database will then be queried with a geocoded Longitude Latitude Point to determine which of the Drawn Polygons encompass the point.
Using Python and Django.
Question
How do I configure the Google Map to allow a user to click around and specify multiple polygon areas?
You will want to bind event listeners to the Polygon overlays.
cool example, not exactly what you want here.
This example has good basic events with Polygons. You can, instead of taking the event and making a info window, maybe take the polygon obj and add it to a object of clicked on Polygons to give to the server.
Then, you could use jquery or other and
ajax.postthe clicked-on data to a request handler. Use the Django models api to write to apostgis-enabled database using GeoDjango.