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>
 | 
			
		||||
<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>
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -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;
 | 
			
		||||
 | 
			
		||||
@ -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;
 | 
			
		||||
 | 
			
		||||
@ -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>
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -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;
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user