Skip to content

Instantly share code, notes, and snippets.

Created April 19, 2013 01:40
Show Gist options
  • Save anonymous/5417531 to your computer and use it in GitHub Desktop.
Save anonymous/5417531 to your computer and use it in GitHub Desktop.
function clearMap(){
for(i in m._layers){
if(m._layers[i]._path != undefined)
{
try{
m.removeLayer(m._layers[i]);
}
catch(e){
console.log("problem with " + e + m._layers[i]);
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment