Clear a kml that was added to google earth using javascript -


i have added kml google earth use of button javascript. how can delete kml or clear kml's use of button? thanks

to remove features can use following method. presumes 'ge' references plug-in object.

function removeallfeatures() {   var features = ge.getfeatures();   while (features.getlastchild() != null)   {     features.removechild(features.getlastchild());   } } 

Comments

Popular posts from this blog

javascript - Enclosure Memory Copies -

php - Replacing tags in braces, even nested tags, with regex -