Angular service

service_capabilities source

Description

Service for GetCapabilities requests to Wms

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

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 WMS service location without parameters from url string

Parameters

NameTypeDescription
str String

Url string to parse

Returns

TypeDescription
String

WMS service Url

getUrl (url, use_proxy)

(DEPRECATED ?)

Parameters

NameTypeDescription
url
use_proxy

getUrl (url, use_proxy)

(DEPRECATED ?)

Parameters

NameTypeDescription
url
use_proxy

param2String (obj) -> String

Create WMS parameter string from parameter object

Parameters

NameTypeDescription
obj Object

Object with stored WNS service parameters

Returns

TypeDescription
String

Parameter string or empty string if no object given

requestGetCapabilities (service_url) -> Promise

Parse added service url and sends GetCapabalities request to WMS service

Parameters

NameTypeDescription
service_url String

Raw Url localization of service

Returns

TypeDescription
Promise

Promise object - Response to GetCapabalities request

service2layers (capabilities_xml) -> Ol.collection

Load all layers of selected service to the map

Parameters

NameTypeDescription
capabilities_xml String

Xml response of GetCapabilities of selected service

Returns

TypeDescription
Ol.collection

List of layers from service