Created
March 1, 2018 10:34
-
-
Save Terny22/b9ba69278940cac7eab9867c80afcd19 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Custom Label example: | |
<div style="position: relative; white-space: nowrap; text-align: center; font-size: 14px; top: 5px;"> | |
<span style="border: 2px solid #000; border-radius: 10px; color: #000; background-color: #fff; padding-left: 5px; padding-right: 5px; padding-top: 3px; padding-bottom: 3px;">${entityName}</span> | |
</div> | |
Color function example: | |
var temperature = dsData[dsIndex]['temperature']; | |
if (temperature >= 25) { | |
return "red"; | |
} else { | |
return "blue"; | |
} | |
Marker image fanction example: | |
var temperature = dsData[dsIndex]['temperature']; | |
var res = {size: 70}; | |
if (temperature >= 25) { | |
res.url = images[0]; | |
} else { | |
res.url = images[1]; | |
} | |
return res; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment