Dynamically generated maps

delete the map object and create a new one to generate a new map without
all the cleanup hassle