Angular service

WMSTservice source

Description

Service for management of time (WMS) layers

Methods

getDateFormatForTimeSlider (time_unit)

Get date format of time data based on time unit property

Parameters

NameTypeDescription
time_unit String

layerIsWmsT (layer_container) -> Boolean

Parameters

NameTypeDescription
layer_container Ol.collection

Container object of layer (layer_container.layer expected)

Returns

TypeDescription
Boolean

True for WMS layer with time support Test if WMS layer have time support (WMS-T). WMS layer has to have dimensions_time or dimension property, function converts dimension to dimensions_time

parseInterval (interval)

Parse interval string to get interval in Date format

Parameters

NameTypeDescription
interval String

Interval time string

setLayerTime (currentLayer)

Update layer time parameter

Parameters

NameTypeDescription
currentLayer object

Selected layer

setLayerTimeSliderIntervals (new_layer, metadata)

Set time intervals for WMS-T (WMS with time support)

Parameters

NameTypeDescription
new_layer Object

Layer to set time intervals

metadata Object

Time dimension metadata for layer