You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Inner color defined in statuses or templates is defined according to functional color, to highlight the inner. In the case of a dark functional color, the inner color is set to "white".
However in the case of "plain = false" or a gauge, the background is white and the border of the functional color => invisible inner.
But we also will leave the developer free to use another color
At the same time, we would like to simplify the use of the component by setting the color of label/icon to white vs. black according to the background color of the marker.
Can be done according to the following algorithm (which is aligned with @mccart77 specifications for functional markers color):
Background Luminance = .3R+.6V+.1B
If Luminance >= 128 set the icon / label in black
If Luminance < 128 set the icon / label in white
The text was updated successfully, but these errors were encountered:
In Map Component:
At the same time, we would like to simplify the use of the component by setting the color of label/icon to white vs. black according to the background color of the marker.
Can be done according to the following algorithm (which is aligned with @mccart77 specifications for functional markers color):
The text was updated successfully, but these errors were encountered: