Fire events from the map element. Added events for removing a layer and
hiding a layer.