Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Controller

Index

Properties

active

active: boolean

copyFromActive

copyFromActive: boolean

deleteFromActive

deleteFromActive: boolean

drawActive

drawActive: boolean

drawTriangleActive

drawTriangleActive: boolean

eraseActive

eraseActive: boolean

feature

feature: Feature<Geometry>

geomType

geomType: string

geomTypePolygon

geomTypePolygon: string

map

map: Map

ngeoToolActivateMgr_

ngeoToolActivateMgr_: ToolActivateMgr

process

process: string

queryableLayerInfo

requiresLayer

requiresLayer: boolean

scope_

scope_: IScope

sketchFeatures

sketchFeatures: Collection<Feature<Geometry>>

toolActiveNames_

toolActiveNames_: string[]

triangleAngle

triangleAngle: number

triangleRadius

triangleRadius: number

Methods

$onInit

  • $onInit(): void

handleDestroy_

  • handleDestroy_(): void

handleToolActiveChange_

  • handleToolActiveChange_(process: string, requiresLayer: boolean, newVal: boolean): void
  • Called when any of the tool 'active' property changes.

    Parameters

    • process: string

      The behavior the tool should use when active.

    • requiresLayer: boolean

      Whether the tool requires the queryable layer or not.

    • newVal: boolean

      New value.

    Returns void

registerTool_

  • registerTool_(toolActiveName: string, process: string, opt_requiresLayer: boolean): void
  • Register a tool using its active property name and what behavior it should have when it is active and a sketch feature is added

    This method:

    • registers a watcher on the tool active property to manage this directive main active property, i.e the directive is considered active when one of the tools is active, otherwise it's not active.

    • creates a ngeo.misc.ToolActivate object and registers it in a group so that only one tool can be active at a time

    Parameters

    • toolActiveName: string

      The name of the active property for the tool.

    • process: string

      The behavior the tool should use when active and when sketch features are added.

    • opt_requiresLayer: boolean

    Returns void

Generated using TypeDoc