Class: AbstractController controller

gmf.AbstractController

new AbstractController(config, $scope, $injector)

Application abstract controller.

This file includes goog.require for base components/directives used by the HTML page and the controller to provide the configuration.

Parameters:
Name Type Description
config gmfx.Config

A part of the application config.

$scope angular.Scope

Scope.

$injector angular.$injector

Main injector.

Members

$scope: angular.Scope

defaultLang: string

Default language

(non-null) dimensions: Object:.<string:, string:>

(nullable) displaywindowContent: string

(nullable) displaywindowHeight: string

displaywindowOpen: boolean

(nullable) displaywindowTitle: string

(nullable) displaywindowUrl: string

(nullable) displaywindowWidth: string

drawFeatureActive: boolean

drawProfilePanelActive: boolean

filterSelectorActive: boolean

getBrowserLanguage: ngeo.GetBrowserLanguage

gettextCatalog: angularGettext.Catalog

The gettext catalog

gmfThemeManager: gmf.ThemeManager

gmfUser: gmfx.User

hasEditableLayers: boolean

lang: string

(non-null) langUrls: Object:.<string:, string:>

Languages URL

leftNavVisible: boolean

manageResize: boolean

Whether to update the size of the map on browser window resize.

mapToolsGroup: string

measureLengthActive: boolean

The active state of the directive responsible of length measurements.

measurePointActive: boolean

The active state of the directive responsible of point measurements.

ngeoLocation: ngeo.Location

Location service

printActive: boolean

printPanelActive: boolean

queryActive: boolean

The active state of the ngeo query directive.

queryAutoClear: boolean

Set the clearing of the ngeoQuery after the deactivation of the query

queryFeatureStyle: ol.style.Style

FeatureStyle used by the displayquerywindow directive

resizeTransition: number|undefined

The duration (milliseconds) of the animation that may occur on the div containing the map. Used to smoothly resize the map while the animation is in progress.

rightNavVisible: boolean

searchDatasources: Array:.<gmfx.SearchComponentDatasource:>

stateManager: ngeo.StateManager

tmhDynamicLocale: tmhDynamicLocale

(inner, constant) gmfAuthentication: gmf.Authentication

Authentication service

(inner, constant) ngeoFeatureHelper: ngeo.FeatureHelper

Ngeo FeatureHelper service

(inner, constant) ngeoFeatureOverlayMgr: ngeo.FeatureOverlayMgr

The ngeo feature overlay manager service

(inner, constant) ngeoToolActivateMgr: ngeo.ToolActivate.Mgr

The ngeo ToolActivate manager service.

Methods

(protected) getLocationIcon()

Returns:
Element

Span element with font-awesome inside of it

initLanguage()

switchLanguage(lang)

Parameters:
Name Type Description
lang string

Language code.

(inner) userChange(evt)

Parameters:
Name Type Description
evt gmfx.AuthenticationEvent

Event.