Hierarchy

  • Controller

Properties

$timeout_: ITimeoutService
dataLayerGroup_: LayerGroup
dimensions: Object
gmfDataSourceBeingFiltered: any
gmfExternalDataSourcesManager: any
gmfLayerBeingSwipe: any
gmfPermalink_: any
gmfSyncLayertreeMap_: any
gmfThemes_: any
gmfTreeManager_: any
groupNodeStates_: Object
layerHelper_: LayerHelper
layers: BaseLayer[]
map: Map
ngeoWMSTime_: WMSTime
options: any
root: any
scope_: IScope

Methods

  • Update the layers order in the map and the treeCtrl in the treeManager after a reorder of the first-level groups. Then update the permalink.

    Returns void

  • Use the gmfSyncLayertreeMap_ to create and get layer corresponding to this treeCtrl. The layer will be inserted into the map. The layer can be null if the treeCtrl is based on a node inside a mixed node. It this case, the layer will be in the first parent declared as a mixed node.

    Returns

    The OpenLayers layer or group for the node.

    Parameters

    Returns BaseLayer | LayerGroup

  • Get the icon image URL for the given treeCtrl's layer. It can only return a string for internal WMS layers without multiple childlayers in the node.

    Returns

    The icon legend URL or undefined.

    Parameters

    Returns string

  • Get the legends object (<LayerName: url> for each layer) for the given treeCtrl.

    Returns

    A <layerName: url> object that provides a layer for each layer.

    Parameters

    Returns Object

  • Return the current state of the given treeCtrl's node. Return a class name that match with the current node activation state.

    Returns

    'on' or 'off' or 'indeterminate'.

    Parameters

    Returns string

  • Return 'out-of-resolution' if the current resolution of the map is out of the min/max resolution in the node.

    Returns

    'out-of-resolution' or undefined.

    Parameters

    • gmfLayer: any

      the GeoMapFish Layer. WMTS layer is also allowed (the type is defined as GmfLayerWMS only to avoid some useless tests to know if a minResolutionHint property can exist on the node).

    Returns string

  • Returns

    Whenever the legend is currently displayed.

    Parameters

    • legendNodeId: string

      The DOM node legend id

    Returns boolean

  • Remove layer from this component's layergroup (and then, from the map) on a ngeo layertree destroy event.

    Parameters

    • scope: IScope

      treeCtrl scope.

    • treeCtrl: LayertreeController

      ngeo layertree controller, from the current node.

    Returns void

  • Determines whether the layer tree controller supports being customized. For example, having its layer opacity changed, displaying its legend, etc.

    If any requirement is met, then the treeCtrl is considered supporting "customization", regardless of what it actually is.

    The requirements are:

    • must not be the root controller, any of the following:
      • it supports legend
      • it supports having the layer opacity being changed

    Returns

    Whether the layer tree controller supports being "customized" or not.

    Parameters

    Returns boolean

  • Toggle the legend for a node

    Parameters

    • legendNodeId: string

      The DOM node legend id to toggle

    Returns void

  • Toggle the menu for a node

    Parameters

    • menuNodeId: string

      The DOM node menu id to toggle

    Returns void

toggleSwipeLayer
  • Parameters

    • layer: Layer<Source, LayerRenderer<any>>

      Layer to update.

    • node: any

      Layer tree node.

    Returns void

  • Update the timeRangeValue property of the data source bound to the given tree controller and the state of the permalink using the given time.

    LayertreeController.prototype.updateTimeData - description

    Parameters

    • layertreeCtrl: LayertreeController

      ngeo layertree controller

    • time: TimeRange

      The start and optionally the end datetime (for time range selection) selected by user

    Returns void

  • Update the timeRangeValue property of the data source bound to the given tree controller using the given time. If the tree controller has no data source, it means that it has children and they might have data sources.

    The setting of the TIME parameter on the layer occurs in the gmf.datasource.Manager service

    LayertreeController.prototype.updateWMSTimeLayerState - description

    Parameters

    • layertreeCtrl: LayertreeController

      ngeo layertree controller

    • time: TimeRange

      The start and optionally the end datetime (for time range selection) selected by user

    Returns void

Generated using TypeDoc