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:>

drawFeatureActive: boolean

drawProfilePanelActive: boolean

filterSelectorActive: boolean

getBrowserLanguage: ngeo.GetBrowserLanguage

gettextCatalog: angularGettext.Catalog

The gettext catalog

gmfThemeManager: gmf.ThemeManager

gmfUser: gmfx.User

hasEditableLayers: boolean

(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.SearchDirectiveDatasource:>

stateManager: ngeo.StateManager

tmhDynamicLocale: tmhDynamicLocale

(inner, constant) gmfAuthentication: gmf.Authentication

Authentication service

(inner, constant) ngeoCreatePopup: ngeo.CreatePopup

Ngeo create popup factory

(inner, constant) ngeoFeatureHelper: ngeo.FeatureHelper

Ngeo FeatureHelper service

(inner, constant) ngeoFeatureOverlayMgr: ngeo.FeatureOverlayMgr

The ngeo feature overlay manager service

(inner, constant) ngeoToolActivateMgr: ngeo.ToolActivateMgr

The ngeo ToolActivate manager service.

Methods

(static) getLayerByLabels(layers, labels)

Parameters:
Name Type Description
layers Array.

Layers list.

labels Array.

default_basemap list.

Returns:
ol.layer.Base

layer or null

initLanguage()

switchLanguage(lang)

Parameters:
Name Type Description
lang string

Language code.