Class: module:Manager service:gmfTreeManager

gmf.theme.module:Manager.gmf.theme.module:Manager

new module:Manager($rootScope, gmfThemes, gmfTreeManagerModeFlush, gmfTreeManager, ngeoStateManager)

Manage a tree with children. This service can be used in mode 'flush' (default) or not (mode 'add'). In mode 'flush', each theme, group or group by layer that you add will replace the previous children's array. In mode 'add', children will be just pushed in this array. The default state can be changed by setting the value gmfTreeManagerModeFlush, e.g.:

let module = angular.module('app'); module.value('gmfTreeManagerModeFlush', false);

This service's theme is a GmfTheme with only children and a name. Thought to be the tree source of the gmf layertree directive.

Parameters:
Name Type Description
$rootScope angular.Scope

Angular rootScope.

gmfThemes gmf.theme.Themes

gmf Themes service.

gmfTreeManagerModeFlush boolean

Flush mode active?

gmfTreeManager gmf.layertree.TreeManager

the tree manager.

ngeoStateManager ngeo.statemanager.Service

The ngeo statemanager service.

Members

modeFlush: boolean