ramazanalic / kml-samples

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

balloonVisibility does not work when there are two placemarks or it is placed before description #253

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Which products are affected?
Google Earth 5

What steps will reproduce the problem?
1. When there are more than one placemark in the KML, balloon with
<gx:balloonVisibility>1</gx:balloonVisibility> does not show up.
2. When <gx:balloonVisibility>1</gx:balloonVisibility> is placed before
<description>, it does not show up. (it does show up when placed after
<description>)
3.

What is the expected output or behavior? What do you see instead?
The balloon with <gx:balloonVisibility>1</gx:balloonVisibility> should open
when the KML is first loaded.

What application versions (if any) are you using?
Google Earth 5

Which operating systems and browsers are affected?
Windows XP SP3, Mac OSX (Macbook Air)

Please provide any additional information (code snippets/links) below.
"Two placemarks" issue:
http://green.env.duke.edu/prod/cache/misc/balloonVisibility_with_two_placemarks.
kml

This issue was discussed below.
http://groups.google.com/group/kml-support-getting-started/browse_frm/thread/948
43ff1000c7eff/685222cd4606e7bc#685222cd4606e7bc

"Before description" issue:
http://green.env.duke.edu/prod/cache/misc/balloonVisibility_before_desc.kml

This issue was discussed below.
http://groups.google.com/group/kml-support-getting-started/browse_frm/thread/941
83cb9bc38f64c#

Original issue reported on code.google.com by fujio...@nifty.com on 26 Feb 2009 at 11:14

GoogleCodeExporter commented 8 years ago
Regarding the two placemarks issue, I've gotten a simpler reproduction case. I
believe the main problem is inconsistent balloonVisibility behavior. i.e. try 
pasting
this into GE5 several times (deleting the placemark in between attempts):

<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://www.opengis.net/kml/2.2" 
xmlns:gx="http://www.google.com/kml/ext/2.2">
 <Placemark>
   <name>placemark1</name>
   <description>(balloonVisibility = 1)</description>
   <gx:balloonVisibility>1</gx:balloonVisibility>
   <Point>
     <coordinates>2.294785,48.858093,0</coordinates>
   </Point>
 </Placemark>
</kml>

Notice that the first time, the balloon may pop up, but after that, it fails to 
show.

Original comment by api.roman.public@gmail.com on 2 Mar 2009 at 6:23