new SensorTheme()
modules/tools/gfi/themes/sensor/model.js, line 17
This theme is used to show sensor-data.
If "grafana" is configured and the feature contains attributes starting with the content of attribute "iFrameAttributesPrefix",
then these links are used to generate iframes.
Properties:
Name | Type | Default | Description |
---|---|---|---|
grafana |
Boolean | false | Flag to show if grafana iframes should be generated. |
Methods
-
getGrafanaUrlsFromFeature(feature, iFrameAttributesPrefix){Object}
modules/tools/gfi/themes/sensor/model.js, line 57 -
Parses all attributes of the gfiFeature that start with the content of attribute "iFrameAttributesPrefix".
Name Type Description feature
ol/Feature gfiFeature. iFrameAttributesPrefix
String The prefixString Returns:
An object containing all the grafana urls.
-
parseProperties(){void}
modules/tools/gfi/themes/sensor/model.js, line 27 -
Parses the properties based on the models "grafana" flag
-
setGrafana(value){void}
modules/tools/gfi/themes/sensor/model.js, line 79 -
Setter for attribute "grafana":
Name Type Description value
Boolean Flag if grafana should be used. -
setGrafanaUrls(value){void}
modules/tools/gfi/themes/sensor/model.js, line 88 -
Setter for attribute "grafanaUrls":
Name Type Description value
Object An object containing all the grafana urls.