This did not work because the ga-map directive _masks_ the $rootScope for our directive (because of the require, we get the scope of ga-map).

But we can circumvent this by adding a specific testcontroller. We tried that this morning and failed. But with my latest commit, it is now working. (Cédric, we forgot to add the controller to the html snippet!)

https://github.com/geoadmin/mf-geoadmin3/commit/bc73593feb82fc5e5bfb051c5c56a5b642eaed3e

There's still a surprise for me: The testcontroller gets a scope and I assumend that this scope would inherit from the rootscope we defined in the inject function. But that's not the case. That's why we have to specify the options for the contextmenu in the controller directly.

Does anyone see the reason why the testcontrollers $scope does not inherit from the rootscope?