passed getLayerContext method to modules instead of the layermanager object itself