Angular controller

controller source

Methods

following (set_to)

State manager of following function. Without arguments returns following state in Boolean. With argument change following state.

Parameters

NameTypeDescription
set_to Boolean

Optional - Desired following state

getGeolocationProvider

Return which geolocation provider is currently used (Geolocation API / ol.Geolocation)

gpsActive (set_to)

Tracking info/starter, without argument return tracking status. With argument start tracking for mobile, with argument "True" start tracking for desktop

Parameters

NameTypeDescription
set_to Boolean

Optional argument

setFeatureStyle (style)

Change style of location layer

Parameters

NameTypeDescription
style ol.style.Style

New style of location layer