The Sign feature allows you to display one line of text. Unlike Richtext, though, they can be used as a hyperlink.
The text you want to display.
The size of the font.
This is used to determine how the text is blended with whatever is behind it. The available options are Combine
, Multiply
, and Screen
.
When ticked, the text will be white on a black background, rather than the other way around.
A link that, when clicked on, will popup a warning message before letting the player go to the desired link.
Self-explanatory
Color of the font
Color of the background
String
;
feature.get('text')
// returns: "my line of text"
feature.set({'text':"my line of text"})
""
String
;
feature.get('link')
// returns: "https://..."
feature.set({'link':"https://..."})
""
Integer
;
feature.get('fontSize')
// returns: 25
feature.set({'fontSize':25})
25
String
-hexadecimal;
feature.get('color')
// returns: "#00000"
feature.set({'color':"#fcba03"})
"#00000"
String
-hexadecimal;
feature.get('background')
// returns: "#00000"
feature.set({'background':"#fcba03"})
"#fffff"
String
;
feature.get('type')
/* or */
feature.type
// returns: 'sign'