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, Fahad -- 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=.
