Angular controller

controller source

Description

Controller for datasource_selector

Methods

addExtentFeature (record)

Parameters

NameTypeDescription
record Object

Record of one dataset from Get Records response (PRIVATE) Create extent features for displaying extent of loaded dataset records in map

addLayerToMap (ds, layer)

Parameters

NameTypeDescription
ds Object

Datasource of selected layer

layer Object

Metadata record of selected layer Add selected layer to map (into layer manager) if possible (supported formats: WMS, WFS, Sparql, kml, geojson, json)

addLayerToMap (ds, layer)

Parameters

NameTypeDescription
ds Object

Datasource of selected layer

layer Object

Metadata record of selected layer Add selected layer to map (into layer manager) if possible (supported formats: WMS, WFS, Sparql, kml, geojson, json)

getNextRecords (ds)

Parameters

NameTypeDescription
ds Object

Selected datasource Loads next records of datasets from selected datasource (based on number of results per page and current start)

getPreviousRecords (ds)

Parameters

NameTypeDescription
ds Object

Selected datasource Loads previous records of datasets from selected datasource (based on number of results per page and current start)

layerDownload (ds, layer) -> String

Parameters

NameTypeDescription
ds Object

Datasource of selected layer

layer Object

Metadata record of selected layer

Returns

TypeDescription
String

Download url of layer if possible Test if layer of selected record is downloadable (KML and JSON files, with direct url) and gives Url.

layerRDF (ds, layer) -> String

Parameters

NameTypeDescription
ds Object

Datasource of selected layer

layer Object

Metadata record of selected layer

Returns

TypeDescription
String

URL to record file Get URL for RDF-DCAT record of selected layer

setOtnKeyword (theme)

Parameters

NameTypeDescription
theme String

Selected Otn theme keyword Select Otn Keyword as query subject (used with dropdown list in Gui)

showMetadata (ds, layer)

Parameters

NameTypeDescription
ds Object

Datasource of selected layer

layer Object

Metadata record of selected layer Show metadata record dialog window for selected layer.

showSuggestions (input, param, field)

Parameters

NameTypeDescription
input String

Suggestion class type name (e.g. "Organisation Name")

param String

Suggestion paramater of Micka service (e.g. "org")

field String

Expected property name in response object (e.g. "value") Shows suggestions dialog and edits suggestion config.

zoomTo (bbox)

Parameters

NameTypeDescription
bbox String

Bounding box of selected layer ZoomTo / MoveTo to selected layer overview