रिसर्च सर्वे: Blockly के साथ अपने अनुभव के बारे में हमें बताएं
सर्वे शुरू करें
ब्लॉकले > MarkerManager > getMarker
MarkerManager.getMarker() तरीका
दिए गए आईडी से जुड़ा एक मार्कर पाएं.
हस्ताक्षर:
getMarker(id: string): Marker | null;
पैरामीटर
पैरामीटर |
टाइप |
ब्यौरा |
आईडी |
स्ट्रिंग |
मार्कर के लिए यूनीक आइडेंटिफ़ायर. |
लौटाए जाने वाले प्रॉडक्ट:
मार्कर | null
दिए गए आईडी से जुड़ा मार्कर या कोई मौजूद न होने पर शून्य.
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2024-10-15 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2024-10-15 (UTC) को अपडेट किया गया."],[[["The `getMarker()` method retrieves a specific marker object associated with a unique ID from the MarkerManager."],["If a marker with the given ID exists, the method returns the corresponding Marker object; otherwise, it returns null."],["The method requires a single parameter: a string representing the unique identifier of the target marker."]]],["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"]]