Angular service

service_capabilities source

Description

Service for GetCapabilities requests to wmts

Methods

getPathFromUrl (str) -> String

Get WMTS service location without parameters from url string

Parameters

NameTypeDescription
str String

Url string to parse

Returns

TypeDescription
String

WMTS service Url

param2String (obj) -> String

Create WMTS 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 WMTS 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