Announcement: On November 13, 2024, all users will need to use a Cloud project in order to access Earth Engine. After this date, continued individual access without a Cloud project will require an exception.
Stay organized with collections
Save and categorize content based on your preferences.
A text label.
Usage
Returns
ui.Label(value, style, targetUrl, imageUrl)
ui.Label
Argument
Type
Details
value
String, optional
The text to display. Defaults to an empty string.
style
Object, optional
An object of allowed CSS styles with their values to be set for this widget. See style() documentation.
targetUrl
String, optional
The url to link to. Defaults to an empty string.
imageUrl
String, optional
Optional image url. If provided, the label will be rendered as an image and the value text will be shown on mouse hover. Only data: urls and icons loaded from gstatic.com are allowed.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2023-10-06 UTC."],[[["The `ui.Label` widget displays text or an image, optionally with a link."],["It can be customized with CSS styles using the `style` argument."],["If an `imageUrl` is provided, the label is rendered as an image with hover text from `value`."],["The `targetUrl` argument allows linking the label to a specified URL."]]],[]]