Angular service

service_capabilities source

Description

Service for GetCapabilities requests to WFS

Methods

currentProjectionSupported (srss) -> Boolean

Test if current map projection is in supported projection list

Parameters

NameTypeDescription
srss Array

List of supported projections

Returns

TypeDescription
Boolean

True if map projection is in list, otherwise false

getPathFromUrl (str) -> String

Get WFS service location without parameters from url string

Parameters

NameTypeDescription
str String

Url string to parse

Returns

TypeDescription
String

WFS service Url without params

getUrl (url, use_proxy)

(DEPRECATED ?)

Parameters

NameTypeDescription
url
use_proxy

param2String (obj) -> String

Create WFS parameter string from parameter object

Parameters

NameTypeDescription
obj Object

Object with stored WFS service parameters

Returns

TypeDescription
String

Parameter string or empty string if no object given

requestGetCapabilities (service_url) -> Promise

Parse added service url and sends request GetCapabalities to WFS service

Parameters

NameTypeDescription
service_url String

Raw Url localization of service

Returns

TypeDescription
Promise

Promise object - Response to GetCapabalities request