Class: exports.SensorThingsHttp

Core.ModelList.Layer.SensorThingsHttp. exports.SensorThingsHttp

SensorThingsHttp is the software layer to handle the special needs of the SensorThingsAPI regarding http requests.
SensorThingsAPI: https://docs.opengeospatial.org/is/15-078r6/15-078r6.html

This software layer handles the skip response of the SensorThings-API as well as the call in the browsers extent.

To import SensorThingsHttp: import {SensorThingsHttp} from "./sensorThingsHttp";
create a new object:        const obj = new SensorThingsHttp()
call:                       obj.get(url, onsuccess, onstart, oncomplete, onerror, onwait)
call:                       obj.getInExtent(url, extentObj, onsuccess, onstart, oncomplete, onerror, onwait)
get the result via onsuccess = function (result) { ... }

new Core.ModelList.Layer.SensorThingsHttp.exports.SensorThingsHttp(optionsOpt){SensorThingsHttp}

modules/core/modelList/layer/sensorThingsHttp.js, line 23
constructor of SensorThingsHttp
Name Type Description
optionsOpt Object optional the options for the SensorThingsHttp
Name Type Default Description
removeIotLinks Boolean false optional set to true if the overhead from IotLinks should be removed
httpClient Boolean null optional the httpClient to use as function(url, onsuccess, onerror) with onsuccess as function(response) and onerror as function(error)
Returns:
instance of SensorThingsHttp