ReportsManager

ol-ishare/logger~ ReportsManager

new ReportsManager(iShareUrl, profileName, layerName)

Manage report data stored in iShare, for a given profile

Requires iShare v5.8.22 or higher

Parameters:
Name Type Description
iShareUrl String

Base URL for iShare Web app

profileName String

iShare profile to use for Logger

layerName String

Layer in profile that contains previous reports

Methods

add(report) → {Promise.String}

Store the details of a Logger or location selection

Parameters:
Name Type Description
report module:ol-ishare/logger~Report

Report object

Returns:

Promise object that resolves to a new Report with assigned ID and active state

Type
Promise.String

archive(report) → {module:ol-ishare/logger~Report}

Removes a report from iShare storage

Parameters:
Name Type Description
report module:ol-ishare/logger~Report

Report object

Returns:

Report object

Type
module:ol-ishare/logger~Report