Capture Google Map KML input to Google Form/Fusion Table

Cancelado Postado Jan 19, 2013 Pago na entrega
Cancelado Pago na entrega

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.

AJAX Cartografia & Mapas Formulários Eletrônicos JavaScript PHP

ID do Projeto: #4142783

Sobre o projeto

3 propostas Projeto remoto Ativo em Jan 27, 2013

3 freelancers estão ofertando em média $583 nesse trabalho

pentium10

Professional work from professionals!

$1500 USD in 30 dias
(220 Comentários)
6.8
dmytyar

Check your PMB to solution.

$50 USD em 1 dia
(1 Comentário)
3.1
csandorsl

Google Maps developer and GIS analyst. PMB for details.

$200 USD in 7 dias
(0 Comentários)
0.0