Merge pull request #13203 from vvlladd28/improvement/map-help/additional-key

Updated map help
This commit is contained in:
Igor Kulikov 2025-04-14 13:41:58 +03:00 committed by GitHub
commit a52ad6abf1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 10 additions and 5 deletions

View File

@ -30,7 +30,8 @@ In case no data is returned, default colors will be used depending on number of
<ul>
<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>

View File

@ -1,6 +1,7 @@
##### 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
var type = data.Type;

View File

@ -1,6 +1,7 @@
##### 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
var deviceType = data.Type;

View File

@ -40,7 +40,8 @@ In case no data is returned, default marker image will be used.
<ul>
<li>
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>
</ul>

View File

@ -1,6 +1,7 @@
##### 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
var deviceType = data.Type;