Search code examples
kmlgoogle-earth-plugin

Is there anyway to close balloons from placemarks read from kml if this kml was removed while balloon is still showed?


To put it simple, I have some placemarks in KML file, if I load this KML, then click on Placemark - balloon will show.
If i remove that KML, placemark is gone, but balloon still showed.
Anyway to make it close?


Solution

  • This should do the trick to close any open balloon:

    ge.setBalloon(null);