KML Errors (Firefox) & Points Missing (Google Maps)

Hi,

I've been attempting understand why a KML file produced by ODK
Aggregate doesn't display correctly on top of Google Maps. e.g.

http://maps.google.com/?q=http://www.lkjh.biz/bikesigns/build_Sustrans-Survey_1296486803_results.kml

Only about half of the 92 data points are displayed. If I shorten the
KML file to contain only 38 points it displays correctly.

Q1: Is there a limit to how many points can be displayed on Google
Maps this way?

One thing I've noticed is that Firefox's "Error Console" shows dozens
of errors when interpreting the KML file - see
http://www.lkjh.biz/bikesigns/firefox_kml_errors.png

Q2: Is this normal?

Incidentally the KML file displays correctly in Google Earth.

http://www.lkjh.biz/bikesigns/build_Sustrans-Survey_1296486803_results.kml

ta.

Kirby

Aggregate's KML generation functionality was targeted for Google
Earth. If you find the reason let us know and open a issue on our
google code page.

My guess is that there is a bad character in the data that is being
presented in the popup/placemark. The fix would be for Aggregate needs
to strip that character when encoding the KML. The fact that it
displays correctly sometimes makes me think you can probably narrow
down the offending datapoint that is causing problems. Again this is
only a guess.

Again if you figure it out open an issue on our google code website
and we will get it fixed for you.

Cheers,
Waylon

··· On Wed, Mar 9, 2011 at 11:47 AM, KirbyJames wrote: > Hi, > > I've been attempting understand why a KML file produced by ODK > Aggregate doesn't display correctly on top of Google Maps. e.g. > > http://maps.google.com/?q=http://www.lkjh.biz/bikesigns/build_Sustrans-Survey_1296486803_results.kml > > Only about half of the 92 data points are displayed. If I shorten the > KML file to contain only 38 points it displays correctly. > > Q1: Is there a limit to how many points can be displayed on Google > Maps this way? > > One thing I've noticed is that Firefox's "Error Console" shows dozens > of errors when interpreting the KML file - see > http://www.lkjh.biz/bikesigns/firefox_kml_errors.png > > Q2: Is this normal? > > Incidentally the KML file displays correctly in Google Earth. > > http://www.lkjh.biz/bikesigns/build_Sustrans-Survey_1296486803_results.kml > > ta. > > Kirby > > -- > Post: opendatakit@googlegroups.com > Unsubscribe: opendatakit+unsubscribe@googlegroups.com > Options: http://groups.google.com/group/opendatakit?hl=en >

Hi Kirby,

Not sure if this fixes your problem but keep in mind that google will cache the KML file on their servers, so if you change the contents of a file it will only be reflected in google maps if you change the name of the file.

The map URL you linked to has 19 points--

http://maps.google.com/?q=http://www.lkjh.biz/bikesigns/build_Sustrans-Survey_1296486803_results.kml

Adding a query string to force a fresh cache now displays 45 points--
http://maps.google.com/?q=http://www.lkjh.biz/bikesigns/build_Sustrans-Survey_1296486803_results.kml?asdf

Hope this helps your debugging.

-Alex

··· On Mar 9, 2011, at 2:47 PM, KirbyJames wrote:

Hi,

I've been attempting understand why a KML file produced by ODK
Aggregate doesn't display correctly on top of Google Maps. e.g.

http://maps.google.com/?q=http://www.lkjh.biz/bikesigns/build_Sustrans-Survey_1296486803_results.kml

Only about half of the 92 data points are displayed. If I shorten the
KML file to contain only 38 points it displays correctly.

Alex,

Many thanks for showing how to force Google Maps to re-load a KML
file ... I can now see all the points.

ta Kirby