Home Reference Source
import {Module} from 'guide4you/src/Module.js'
public class | source

Module

Direct Subclass:

URLAPIModule

Base class for modules. It shows all usable methods.

Member Summary

Private Members
private

Method Summary

Public Methods
public

configureMap(mapConfig: *): undefined

This method is called once when the map is configured

public

configureUI(mapConfig: *): undefined

This method is called every time the ui is recreated

public

This method is called if the ControlFactory cant construct controls of this type

public

createLayer(type: string, options: g4uLayerOptions, superType: SuperType, skipIdCheck: boolean): undefined | ol.layer.Base

This method is called if the LayerFactory cant construct layers of this type

public

Thsi method is called if the map enables userActionTracking

public
public

setMap(map: G4UMap)

Private Members

private map_: G4UMap source

Public Methods

public configureMap(mapConfig: *): undefined source

This method is called once when the map is configured

Params:

NameTypeAttributeDescription
mapConfig *

Return:

undefined

public configureUI(mapConfig: *): undefined source

This method is called every time the ui is recreated

Params:

NameTypeAttributeDescription
mapConfig *

Return:

undefined

public createControl(controlType: string, options: g4uControlOptions, receiver: ComposedControl | G4UMap): undefined | Control source

This method is called if the ControlFactory cant construct controls of this type

Params:

NameTypeAttributeDescription
controlType string
options g4uControlOptions
receiver ComposedControl | G4UMap

Return:

undefined | Control

public createLayer(type: string, options: g4uLayerOptions, superType: SuperType, skipIdCheck: boolean): undefined | ol.layer.Base source

This method is called if the LayerFactory cant construct layers of this type

Params:

NameTypeAttributeDescription
type string
options g4uLayerOptions
superType SuperType
skipIdCheck boolean

Return:

undefined | ol.layer.Base

public enableUserActionTracking(): undefined source

Thsi method is called if the map enables userActionTracking

Return:

undefined

public getMap(): G4UMap source

Return:

G4UMap

public setMap(map: G4UMap) source

Params:

NameTypeAttributeDescription
map G4UMap