Angular controller

controller source

Methods

add (type, url, title, abstract, extract_styles, srs, options)

Load nonwms OWS data and create layer

Parameters

NameTypeDescription
type String

Type of data to load (supports Kml, Geojson, Wfs and Sparql)

url String

Url of data/service localization

title String

Title of new layer

abstract String

Abstract of new layer

extract_styles Boolean

Extract styles

srs String

EPSG code of selected projection (eg. "EPSG:4326")

options Object

Other options

clear

Clear Url and hide details

connect

Get capabalitires of selected OGC service and show details in app

isService -> Boolean

Test if currently selected type is service or file

Returns

TypeDescription
Boolean

boolean True for service, false for file

setUrlAndConnect (url, type)

Connect to service of specified Url and Type

Parameters

NameTypeDescription
url String

Url of requested service

type String

Type of requested service

templateByType -> String

Change detail panel template according to selected type

Returns

TypeDescription
String

template Path to correct type template

zoomToVectorLayer (lyr)

(PRIVATE) Zoom to selected vector layer

Parameters

NameTypeDescription
lyr ol.Layer

New layer