Fix olevents directive

The require ?layers was not working  because of the renaming of layers directive to olLayers