chiropterist / kml-samples

Automatically exported from code.google.com/p/kml-samples
0 stars 0 forks source link

Potential refreshVisibility Problem #272

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Which products are affected?
Google Earth Version 5.0.11337.1968 (beta). 

Attached is a file called refreshVisibilityIssue.kml.
It demonstrates what I'm seeing.  

The file has one network link with the refreshVisibility property set
to zero and a refresh cycle currently set to 30 seconds.  This network
link calls a service/url to retrieve one or more folders.  These
folders contain one or more placemarks with icons using the "dot"
icons.  Each one also has one or more placemarks with a polygon in
each.

1. Everything works and plots correctly when the KML file is double-
clicked and/or File->Open.  
2. If I unselect all of the folders, this of course unselects the whole
network link as well and  then it acts as it should and just doesn't
update.  No problem there.  
3. The problem comes when I unselect "some" of the folders in the network
link but not all.  Unfortunately, what happens at the next refresh is VERY
non-deterministic.  I can't fathom a pattern anyway.  
4. At the next refresh, any items that were selected remain so as they
should.  
5. However, "some" of the items in each of the folders that weren't
selected ALSO get turned back on.  I say some because not all of them get
turned on just some of them.  And as I said, there doesn't seem to be a
pattern as to which items get reselected and which ones don't.  Also,
depending on which folders are originally selected before the refresh,
the items that get reselected will be different.  But the bottom line
is I don't think any of the items that were unselected should get
selected again, right? 

What is the expected output or behavior? What do you see instead?
Since the refreshVisibility option is set to zero, I expected that anything
that was unselected, would stay unselected.

What application versions (if any) are you using?
Google Earth Version 5.0.11337.1968 (beta). 

Which operating systems and browsers are affected?
This is on Windows.

Please provide any additional information (code snippets/links) below.

Original issue reported on code.google.com by markhaw...@gmail.com on 24 Apr 2009 at 10:17

Attachments:

GoogleCodeExporter commented 9 years ago
Roman asked me to include the URL for the other similar posting to the google 
group
but which didn't get submitted as an actual bug.  Here it is:
http://groups.google.com/group/kml-support-advanced/browse_thread/thread/a9567ff
c78055446/c19fae7244272455?lnk=gst&q=refreshVisibility#c19fae7244272455

-Mark

Original comment by markhaw...@gmail.com on 24 Apr 2009 at 10:19

GoogleCodeExporter commented 9 years ago
You need to give an id for each tag in the kml, googlearth must know the 
identity of 
each tag to perform a good refresh.

Ex: <Folder id="f1"><Placemark id="p1">....</Placemark></Folder>

Try to give an id for the tags "Document", "Folder", "Placemark". I don't know 
if 
it's usefull for the others tags

Hope this tip will help you

Original comment by yobter...@gmail.com on 21 Jun 2009 at 5:09