Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Controller

Index

Properties

active: boolean
attributes: Attribute[]
closeAfterSave: boolean
export
confirmDeferred_: IDeferred<never>

A deferred object resolved after the confirm modal "continue w/o saving" or "save" buttons are clicked.

createActive: boolean
createToolActivate: default
dirty: boolean

Flag that is toggled as soon as the feature changes, i.e. if any of its properties change, which includes the geometry.

editableNode_: any
editableTreeCtrl: LayertreeController
editableWMSLayer_: TileLayer<TileSource> | ImageLayer<ImageSource>
element_: JQuery<HTMLElement>
feature: Feature<Geometry>
featureId: string | number
features: Collection<Feature<Geometry>>
geomListenerKeys_: EventsKey[]
geomType: string
gettextCatalog_: gettextCatalog
gmfEditFeature_: any
gmfSnapping_: any
gmfXSDAttributes_: any
highlightVectorLayer_: VectorLayer<VectorSource<Geometry>>
highlightedFeatures_: Collection<Feature<Geometry>>
hightlightedFeatures_: Collection<Feature<Geometry>>
interactions_: Collection<Interaction>
listenerKeys_: EventsKey[]
map: Map
mapListenerKeys_: EventsKey[]
mapSelectActive: boolean
mapSelectToolActivate: default
menuMultipleListenerKeys_: EventsKey[]
menuMultiple_: any
menuVertex_: default
menu_: default
modifyToolActivate: default
modify_: Modify
ngeoEventHelper_: EventHelper
ngeoFeatureHelper_: FeatureHelper
ngeoLayerHelper_: LayerHelper
ngeoToolActivateMgr_: ToolActivateMgr
options_: any
pending: boolean

Flag that is toggled while a request is pending, either one to get features when a map is clicked or when saving

q_: IQService
rotateToolActivate: default
rotate_: default
scope_: IScope
serverErrorMessage: string
serverErrorType: string
showServerError: boolean
state: string

The state property shared with the gmf-editfeatureselector directive. For more info, see in that directive.

timeout_: ITimeoutService
tolerance: number
translateToolActivate: default
translate_: default
unsavedModificationsModalShown: boolean

Flag that controls the visibility of the modal that manages unsaved modifications.

vectorLayer: VectorLayer<VectorSource<Geometry>>
vertexInfo_: number[]

Methods

  • $onInit(): void
  • cancel(): void
  • checkForModifications_(scopeApply: boolean): IPromise<void>
  • Check if there's a feature selected and if it contains modifications (a.k.a. is dirty), then the confirmation modal is shown.

    Parameters

    • scopeApply: boolean

    Returns IPromise<void>

    The promise attached to the confirm deferred object.

  • confirmCancel(): IPromise<void>
  • Check if there are unsaved modifications. If there aren't, then cancel. Used by the 'cancel' button in the template.

    Returns IPromise<void>

    The promise attached to the confirm deferred object.

  • continueWithoutSaving(): void
  • delete(): void
  • handleDestroy_(): void
  • handleEditFeature_(resp: IHttpResponse<string | Node | Document | ArrayBuffer>): void
  • Called after an insert, update or delete request.

    Parameters

    • resp: IHttpResponse<string | Node | Document | ArrayBuffer>

      Ajax response.

    Returns void

  • handleFeatureAdd_(evt: BaseEvent | Event): void
  • handleFeatureChange_(newFeature: Feature<Geometry>, oldFeature: Feature<Geometry>): void
  • handleFeatureGeometryChange_(): void
  • handleFeaturePropertyChange_(): void
  • handleGetFeatures_(coordinate: number[], features: Feature<Geometry>[]): void
  • handleMapClick_(evt: BaseEvent | Event): void
  • Called when the map is clicked.

    (1) If a vector feature was clicked, don't do anything (i.e. allow the interactions to do their bidings without selecting a new feature).

    (2) Otherwise, if there is a feature being edited and has unsaved modifications, show the confirmation modal asking the user what to do about it.

    (3) If there's no feature selected or we have one without unsaved modifications or with modifications that were canceled, launch a query to fetch the features at the clicked location.

    Parameters

    • evt: BaseEvent | Event

      Event.

    Returns void

  • handleMapContextMenu_(evt: BaseEvent | Event): void
  • handleMapSelectActiveChange_(active: boolean): void
  • handleMenuActionClick_(evt: BaseEvent | Event): void
  • handleMenuMultipleActionClick_(features: Feature<Geometry>[], evt: BaseEvent | Event): void
  • Handles the click on element in the feature menu In the call the parameters are in inverse order!

    Parameters

    • features: Feature<Geometry>[]

      Features.

    • evt: BaseEvent | Event

      Event.

    Returns void

  • handleMenuVertexActionClick_(evt: BaseEvent | Event): void
  • handleMultiMenuActionMouseEnter_(features: Feature<Geometry>[], evt: BaseEvent | Event): void
  • Handles mouse entering a menu item of the multiple feature menu

    Parameters

    • features: Feature<Geometry>[]

      Features.

    • evt: BaseEvent | Event

      Event.

    Returns void

  • handleMultiMenuActionMouseOut_(): void
  • handleRotateEnd_(evt: BaseEvent | Event): void
  • handleTranslateEnd_(evt: BaseEvent | Event): void
  • initializeInteractions_(): void
  • openFeatureMenu_(coordinate: number[], features: Feature<Geometry>[]): void
  • registerInteractions_(): void
  • save(): void
  • setAttributes_(attributes: Attribute[]): void
  • setFeature_(feature: Feature<Geometry>): void
  • submit(): void
  • Called when the modal 'save' button is clicked. Do as if the user had clicked on the 'save' input button in the form, which allows the form to be validated.

    Returns void

  • toggle_(active: boolean): void
  • unregisterInteractions_(): void

Generated using TypeDoc