Fix injection for gnMap in viewerDirective