Angular controller

controller source

Description

Controller for draw

Methods

collectProperties

deleteVgiObservation (olf)

Parameters

NameTypeDescription
olf Ol.feature

Ol feature part of selected feature (PRIVATE) Delete VGI observation from remote senslog server

fillFeatureContainer (cf, olf)

Parameters

NameTypeDescription
cf Object

Current active feature

olf Ol.feature

Ol feature (geometry part of cf) (PRIVATE) Fill current feature container object, because we cant edit attributes in OL feature directly

removeFeature (feature)

Parameters

NameTypeDescription
feature Object

Selected feature to remove Remove selected feature from created features list and from map

setCurrentFeature (feature, zoom_to_feature)

Parameters

NameTypeDescription
feature Object

Selected feature to set as current

zoom_to_feature Boolean

If map should zoom on selected feature (true/false), optional Set current feature to work with from created features list (editing etc)

setFeatureStyle (new_style)

Parameters

NameTypeDescription
new_style Ol.style.style

DEPRACATED? vector undefined

setLayerToSelect

setType

setType (type)

Parameters

NameTypeDescription
type String

Type of feature to set (Point / Linestring / Polygon) Change current type of geometry for new features

zoomToFeature (olf)

Parameters

NameTypeDescription
olf Ol.feature

Feature to zoom to (PRIVATE) Zoom to selected feature (center for point, fit view for other types)