קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
blockly > MarkerManager > getMarker
שיטת MarkManager.getMarker()
קבלת סמן יחיד שתואם למזהה הנתון.
Signature:
getMarker(id: string): Marker | null;
פרמטרים
| פרמטר |
סוג |
תיאור |
| id [מזהה] |
מחרוזת |
מזהה ייחודי של הסמן. |
החזרות:
Marker | null
הסמן שתואם למזהה הנתון, או הערך null אם לא קיים.
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2025-07-25 (שעון UTC).
[null,null,["עדכון אחרון: 2025-07-25 (שעון UTC)."],[],["The `getMarker` method retrieves a specific marker using its unique ID. It accepts a string `id` as input. The method searches for a marker matching the provided ID. If a matching marker is found, it is returned as a `Marker` object. If no marker matches the ID, the method returns `null`. This function allows users to access a single marker from a collection managed by `MarkerManager`.\n"]]