Automating the button creation

Automating the button creation for adding resources directly to the map