Merge pull request #13203 from vvlladd28/improvement/map-help/additional-key
Updated map help
This commit is contained in:
commit
a52ad6abf1
@ -30,7 +30,8 @@ In case no data is returned, default colors will be used depending on number of
|
|||||||
|
|
||||||
<ul>
|
<ul>
|
||||||
<li>
|
<li>
|
||||||
Calculate color depending on temperature telemetry value:
|
Calculate color depending on temperature telemetry value.<br/>
|
||||||
|
Ensure that the <code>temperature</code> key is included in the <b>additional data keys</b> configuration.
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -1,6 +1,7 @@
|
|||||||
##### Examples
|
##### Examples
|
||||||
|
|
||||||
* Calculate color depending on `temperature` telemetry value for `thermostat` device type:
|
* Calculate color depending on `temperature` telemetry value for `thermostat` device type.<br>
|
||||||
|
Ensure that the <code>Type</code> and <code>temperature</code> keys are included in the <b>additional data keys</b> configuration:
|
||||||
|
|
||||||
```javascript
|
```javascript
|
||||||
var type = data.Type;
|
var type = data.Type;
|
||||||
|
|||||||
@ -1,6 +1,7 @@
|
|||||||
##### Examples
|
##### Examples
|
||||||
|
|
||||||
* Display styled label with corresponding latest telemetry data for `energy meter` or `thermometer` device types:
|
* Display styled label with corresponding latest telemetry data for `energy meter` or `thermometer` device types.<br/>
|
||||||
|
Ensure that the <code>Type</code>, <code>energy</code> and <code>temperature</code> keys are included in the <b>additional data keys</b> configuration:
|
||||||
|
|
||||||
```javascript
|
```javascript
|
||||||
var deviceType = data.Type;
|
var deviceType = data.Type;
|
||||||
|
|||||||
@ -40,7 +40,8 @@ In case no data is returned, default marker image will be used.
|
|||||||
<ul>
|
<ul>
|
||||||
<li>
|
<li>
|
||||||
Calculate image url depending on <code>temperature</code> telemetry value for <code>thermometer</code> device type.<br>
|
Calculate image url depending on <code>temperature</code> telemetry value for <code>thermometer</code> device type.<br>
|
||||||
Let's assume 4 images are defined in <b>Marker images</b> section. Each image corresponds to particular temperature level:
|
Let's assume 4 images are defined in <b>Marker images</b> section. Each image corresponds to particular temperature level.<br/>
|
||||||
|
Ensure that the <code>Type</code> and <code>temperature</code> keys are included in the <b>additional data keys</b> configuration:
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
|
|||||||
@ -1,6 +1,7 @@
|
|||||||
##### Examples
|
##### Examples
|
||||||
|
|
||||||
* Display details with corresponding telemetry data for `energy meter` or `thermometer` device types:
|
* Display details with corresponding telemetry data for `energy meter` or `thermometer` device types.<br/>
|
||||||
|
Ensure that the <code>Type</code>, <code>energy</code> and <code>temperature</code> keys are included in the <b>additional data keys</b> configuration:
|
||||||
|
|
||||||
```javascript
|
```javascript
|
||||||
var deviceType = data.Type;
|
var deviceType = data.Type;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user