Send layer as context of baseLayersError event to know which layer caused the error