ee.Feature.id
Mit Sammlungen den Überblick behalten
Sie können Inhalte basierend auf Ihren Einstellungen speichern und kategorisieren.
Gibt die ID eines bestimmten Elements in einer Sammlung zurück. Objekte außerhalb von Sammlungen haben nicht unbedingt IDs.
Nutzung | Ausgabe |
---|
Feature.id() | String |
Argument | Typ | Details |
---|
So gehts: element | Element | Das Element, aus dem die ID stammt. |
Sofern nicht anders angegeben, sind die Inhalte dieser Seite unter der Creative Commons Attribution 4.0 License und Codebeispiele unter der Apache 2.0 License lizenziert. Weitere Informationen finden Sie in den Websiterichtlinien von Google Developers. Java ist eine eingetragene Marke von Oracle und/oder seinen Partnern.
Zuletzt aktualisiert: 2025-07-26 (UTC).
[null,null,["Zuletzt aktualisiert: 2025-07-26 (UTC)."],[[["\u003cp\u003eThe \u003ccode\u003e.id()\u003c/code\u003e method retrieves the unique identifier of an element within a collection.\u003c/p\u003e\n"],["\u003cp\u003eObjects not belonging to a collection may not possess IDs.\u003c/p\u003e\n"],["\u003cp\u003eThe method is called on an element and returns the ID as a string.\u003c/p\u003e\n"]]],[],null,["# ee.Feature.id\n\nReturns the ID of a given element within a collection. Objects outside collections are not guaranteed to have IDs.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|----------------|---------|\n| Feature.id`()` | String |\n\n| Argument | Type | Details |\n|-----------------|---------|-----------------------------------------|\n| this: `element` | Element | The element from which the ID is taken. |"]]