Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
blockly > MarkerManager > getMarker
Metoda MarkManager.getMarker()
Pobierz pojedynczy znacznik odpowiadający podanemu identyfikatorowi.
Podpis:
getMarker(id: string): Marker | null;
Parametry
| Parametr |
Typ |
Opis |
| id |
ciąg znaków |
Unikalny identyfikator znacznika. |
Zwroty:
Znacznik | wartość null
Znacznik odpowiadający podanemu identyfikatorowi lub wartość null, jeśli nie istnieje.
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2025-07-25 UTC.
[null,null,["Ostatnia aktualizacja: 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"]]