added feature to destroy a map: myMap.destroy()