getLayers will return the collection of layers of the map, and you can listen for add and remove there:
--
You received this message because you are subscribed to the Google Groups "OpenLayers Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openlayers-de...@googlegroups.com.
To post to this group, send email to openlay...@googlegroups.com.
Visit this group at https://groups.google.com/group/openlayers-dev.
To view this discussion on the web visit https://groups.google.com/d/msgid/openlayers-dev/6d010044-03b9-4afe-96cf-17e801a117f6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.