Ankündigung: Alle nicht kommerziellen Projekte, die vor dem 15. April 2025 für die Nutzung der Earth Engine registriert wurden, müssen die Berechtigung zur nicht kommerziellen Nutzung bestätigen, um weiterhin auf die Earth Engine zugreifen zu können.
Mit Sammlungen den Überblick behalten
Sie können Inhalte basierend auf Ihren Einstellungen speichern und kategorisieren.
Ein Textlabel.
Nutzung
Ausgabe
ui.Label(value, style, targetUrl, imageUrl)
ui.Label
Argument
Typ
Details
value
String, optional
Der anzuzeigende Text. Die Standardeinstellung ist ein leerer String.
style
Objekt, optional
Ein Objekt mit zulässigen CSS-Stilen und den Werten, die für dieses Widget festgelegt werden sollen. Weitere Informationen finden Sie in der Dokumentation zu style().
targetUrl
String, optional
Die URL, auf die der Link verweisen soll. Die Standardeinstellung ist ein leerer String.
imageUrl
String, optional
Optionale Bild-URL. Wenn das Label angegeben ist, wird es als Bild gerendert und der Werttext wird angezeigt, wenn der Mauszeiger darauf bewegt wird. Es sind nur Daten, URLs und Symbole zulässig, die von gstatic.com geladen werden.
[[["Leicht verständlich","easyToUnderstand","thumb-up"],["Mein Problem wurde gelöst","solvedMyProblem","thumb-up"],["Sonstiges","otherUp","thumb-up"]],[["Benötigte Informationen nicht gefunden","missingTheInformationINeed","thumb-down"],["Zu umständlich/zu viele Schritte","tooComplicatedTooManySteps","thumb-down"],["Nicht mehr aktuell","outOfDate","thumb-down"],["Problem mit der Übersetzung","translationIssue","thumb-down"],["Problem mit Beispielen/Code","samplesCodeIssue","thumb-down"],["Sonstiges","otherDown","thumb-down"]],["Zuletzt aktualisiert: 2025-07-26 (UTC)."],[[["Creates a text label UI element that can optionally display an image and link to a URL."],["Customization options include text value, CSS styling, target URL, and image URL."],["Image URLs are restricted to data URLs and icons from gstatic.com, displayed on hover with the text value as a tooltip."],["Default values are provided for optional arguments, resulting in an empty label with no styling or linking."]]],["The `ui.Label` function creates a text label with optional styling, a target URL, and an image. The `value` argument sets the displayed text, `style` customizes the CSS, `targetUrl` defines a link, and `imageUrl` displays an image with hover text. The text, style, URL, and image arguments are all optional and have default values. The label will only allow images from gstatic.com or data urls.\n"]]