check out this open source project, which is in the dev google library. it wont write your sql, but will serialize the data into a parameter string to send it to a backend page which could then store it in your db-
http://gmaps-utility-library-dev.googlecode.com/svn/trunk/geometrycontrols/examples/test.html http://gmaps-utility-library-dev.googlecode.com/svn/trunk/geometrycontrols/docs/reference.html On Aug 6, 10:14 am, eoinmaca <[email protected]> wrote: > Hi, > I have set up the API so that it is possible to draw a polygon on the > map, exactly like in "MyMaps". I would now like to extract the > coordinates of any polygon drawn and use the coordinates in an SQL > query. > > Is there a way to do this directly, i.e. can I access the array of > lat,lon coordinates and format them into an SQL query within a > javascript function? > if so - how do I access this array of coordinates? > > Or do I need to go a more circuitous route, saving the output as KML > (as one would in the myMaps tool by clicking on 'view in Google > earth') then parse the KML to extract the points? > If I need to do it this route, how do I save the map in KML? I am > familliar with the syntax of KML and how to build it - lots of info on > this on the Web, but I cant figure out how to save the map created > with using my map display as KML. > > My map display is at:http://eoinmaca.com/maps/mymap.html > > Many thanks, > > eoinmaca --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Maps API" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/Google-Maps-API?hl=en -~----------~----~----~----~------~----~------~--~---
