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

php - How to build a web site which gives a sub-domain dynamically to every registered user? -

c# - Add item to Generic List / Collection using reflection -