Click event listener for the map layer buttons
The constructor
A reference to the array of MapLayer objects
Event listener method
The event to handle