Capture Google Map KML input to Google Form/Fusion Table

Cancelled

My goal is let a user draw a route on a Google Map so they can submit it to the site.

In the following jsfiddle, a user can draw a route and double-click when finished. Double-click will bring up a Google Form with 'Location' field pre-populated with the KML coordinates. The user can submit it, and it goes to a Fusion Table for easy display down the line once it is approved.

Here is the jsfiddle. [url removed, login to view]

And the code in question:

-----------------------------------------------------------------------------

//here is the variable with properly formatted KML

geolines=escape("")+[url removed, login to view]().getArray().toString().replace(/([\s]+)/g, '')+escape("") ;

//infowindow that should display a form with Location field pre-populated with geolines variable for easy submission.

infowindowv2 = new [url removed, login to view]({

content: ''

});

-------------------------------------------------------------------------------

The problem is that if one zooms out and draws a more complicated route, the KML becomes too large very quickly and I get the following error: "413. That’s an error. Your client issued a request that was too large. That’s all we know." This is because only 2000 characters can be passed via URL and the KML files get a lot bigger very quickly. See here. [url removed, login to view]

I like the way maps/forms/fusion tables work together and I would like to preserve this combination, if possible.

THE JOB:

Figure out a way to get around this error, while preserving the look and feel of the site. Basically, take the KML captured in the "geolines" variable and have it ready for submission via a form.

There is probably a Javascript solution to this. Maybe AJAX. Or maybe Fusion Tables API. Take your pick.

In your responses, please post how you would like to proceed and please post something that gives me confidence you can do finish this.

Note: There may be more than one winning bid for this so I can get several solutions and test and compare on my own.

Skills: AJAX, Cartography & Maps, Electronic Forms, Javascript, PHP

See more: capture google map, kml fusion table, google map fusion table, submit google maps, on line map, jsfiddle net, how to work for google maps, google map submission, google maps get map, get location javascript, characters to draw, javascript draw line, googlemaps api, google maps api javascript, fusion tables api, how to proceed with, google-form, google fusion, Google forms, google form-2, draw map, php kml, coordinates map, display capture, google maps api work

Project ID: #4142783

3 freelancers are bidding on average $583 for this job

pentium10

Professional work from professionals!

$1500 USD in 30 days
(220 Reviews)
6.8
dmytyar

Check your PMB to solution.

$50 USD in 1 day
(1 Review)
3.1
csandorsl

Google Maps developer and GIS analyst. PMB for details.

$200 USD in 7 days
(0 Reviews)
0.0