Restez organisé à l'aide des collections
Enregistrez et classez les contenus selon vos préférences.
blockly > MarkerManager > getMarker
Méthode MarkerManager.getMarker()
Permet d'obtenir un seul repère correspondant à l'ID donné.
Signature :
getMarker(id: string): Marker | null;
Paramètres
Paramètre |
Type |
Description |
id |
chaîne |
Identifiant unique du repère. |
Renvoie :
Marker | nul
Repère correspondant à l'ID donné, ou valeur "null" s'il n'en existe aucun.
Sauf indication contraire, le contenu de cette page est régi par une licence Creative Commons Attribution 4.0, et les échantillons de code sont régis par une licence Apache 2.0. Pour en savoir plus, consultez les Règles du site Google Developers. Java est une marque déposée d'Oracle et/ou de ses sociétés affiliées.
Dernière mise à jour le 2025/07/25 (UTC).
[[["Facile à comprendre","easyToUnderstand","thumb-up"],["J'ai pu résoudre mon problème","solvedMyProblem","thumb-up"],["Autre","otherUp","thumb-up"]],[["Il n'y a pas l'information dont j'ai besoin","missingTheInformationINeed","thumb-down"],["Trop compliqué/Trop d'étapes","tooComplicatedTooManySteps","thumb-down"],["Obsolète","outOfDate","thumb-down"],["Problème de traduction","translationIssue","thumb-down"],["Mauvais exemple/Erreur de code","samplesCodeIssue","thumb-down"],["Autre","otherDown","thumb-down"]],["Dernière mise à jour le 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"]]