Capture Google Map KML input to Google Form/Fusion Table

キャンセルされた 投稿 Jan 19, 2013 着払い
キャンセルされた 着払い

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 地図製作と地図 電子フォーム JavaScript PHP

プロジェクトID: #4142783

プロジェクトについて

3個の提案 リモートプロジェクト アクティブ Jan 27, 2013

3人のフリーランサーが、平均$583 で、この仕事に入札しています。

pentium10

Professional work from professionals!

$1500 USD 30日以内
(220件のレビュー)
6.8
dmytyar

Check your PMB to solution.

$50 USD 1日以内
(レビュー1件)
3.1
csandorsl

Google Maps developer and GIS analyst. PMB for details.

$200 USD 7日以内
(0件のレビュー)
0.0