zahidsw / geoxml3

Automatically exported from code.google.com/p/geoxml3
0 stars 0 forks source link

How to show "Loading" message while loading a .kml? #36

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. User checks a checkbox used to show/hide a .kml file
2. The map seems not to respond to checkbox but is in fact loading the file. 
After a while the expected overlay finally shows on the map.

What is the expected output? What do you see instead?
Possibility of showing a "loading" message, both when first parsing a file 
(geoXml.parse) but also when, after hiding it, the user wants to see it again 
(geoXml.showDocument). I know how to do it, I'm just not sure where in 
geoxml3.js should I place the code for showing and hiding the loading message.

What version of the product are you using? On what operating system?
polys branch

Original issue reported on code.google.com by bock...@gmail.com on 18 Sep 2011 at 7:08

GoogleCodeExporter commented 9 years ago
Not a defect.  Perhaps an enhancement request.

Look into using the progress bar
http://groups.google.com/group/google-maps-js-api-v3/search?group=google-maps-js
-api-v3&q=progress+bar&qt_g=Search+this+group

Original comment by geocodezip on 19 Sep 2011 at 1:51

GoogleCodeExporter commented 9 years ago
A "loading" message means many things to many people.  It could be an alert box 
(annoying), or a CSS box, or some sort of animated thingy that scrolls on the 
top of the window.

You can say "Loading" right before the parse, and say "Complete" in the 
afterParse function, or "Failed" in the failedParse function.  It may be worthy 
to have GeoXML3 keep an Array log of messages via the log function, though.  An 
external setInterval function could keep checking the log for progress 
messages.  I can at least submit a patch for that angle.

Original comment by sineswi...@gmail.com on 8 Feb 2012 at 3:38

GoogleCodeExporter commented 9 years ago
example implementing "Loading" message using the "parsed" event.

http://www.geocodezip.com/geoxml3_test/v3_geoxml3_kmltest_linktoB.html?filename=
http://www.geocodezip.com/geoxml3_test/populationpersquaremile.kml

Original comment by geocodezip on 24 Aug 2014 at 5:51

GoogleCodeExporter commented 9 years ago

Original comment by geocodezip on 23 Dec 2014 at 9:04