GMSCollisionBehaviorRequired (डिफ़ॉल्ट): टकराव की स्थिति में भी मार्कर हमेशा दिखता है. यह डिफ़ॉल्ट व्यवहार है. इससे यह तय नहीं होता कि कोई अन्य मार्कर या बेस मैप लेबल दिखेगा या नहीं.
GMSCollisionBehaviorOptionalAndHidesLowerPriority: मार्कर को सिर्फ़ तब दिखाएं, जब वह दूसरे मार्कर के साथ ओवरलैप न हो रहा हो. अगर इस तरह के दो मार्कर ओवरलैप होते हैं, तो ज़्यादा zIndex वाला मार्कर दिखाया जाता है. अगर दोनों में एक ही zIndex है, तो वर्टिकल स्क्रीन पर नीचे की ओर मौजूद zIndex को दिखाया जाता है.
GMSCollisionBehaviorRequiredAndHidesOptional: मार्कर हमेशा दिखाएं, भले ही वह किसी अन्य मार्कर से टकरा रहा हो. साथ ही, किसी भी GMSCollisionBehaviorOptionalAndHidesLowerPriority को छिपाएं. मार्कर को सिर्फ़ तब दिखाएं, जब वह दूसरे मार्कर के साथ ओवरलैप न हो रहा हो. GMSCollisionBehaviorRequired नहीं है. अगर इस तरह के दो मार्कर एक-दूसरे पर ओवरलैप होते हैं, तो ज़्यादा zIndex वाला मार्कर दिखाया जाता है. एक ही zIndex वाले मार्कर के लिए, टकराव के नियमों के बारे में नहीं बताया गया है.
Swift
// Defines a marker to always display and hide any marker or label overlay with this marker in the base mapmarker.collisionBehavior=.requiredAndHidesOptional
Objective-C
// Defines a marker to always display and hide any marker or label overlay with this marker in the base mapmarker.collisionBehavior=GMSCollisionBehaviorRequiredAndHidesOptional
[[["समझने में आसान है","easyToUnderstand","thumb-up"],["मेरी समस्या हल हो गई","solvedMyProblem","thumb-up"],["अन्य","otherUp","thumb-up"]],[["वह जानकारी मौजूद नहीं है जो मुझे चाहिए","missingTheInformationINeed","thumb-down"],["बहुत मुश्किल है / बहुत सारे चरण हैं","tooComplicatedTooManySteps","thumb-down"],["पुराना","outOfDate","thumb-down"],["अनुवाद से जुड़ी समस्या","translationIssue","thumb-down"],["सैंपल / कोड से जुड़ी समस्या","samplesCodeIssue","thumb-down"],["अन्य","otherDown","thumb-down"]],["आखिरी बार 2025-09-25 (UTC) को अपडेट किया गया."],[],["Collision behavior dictates marker display during overlaps. Options include: `Required` (always visible, default); `OptionalAndHidesLowerPriority` (visible only if no overlap, higher `zIndex` prevails); and `RequiredAndHidesOptional` (always visible, hides `OptionalAndHidesLowerPriority`). `zIndex` determines priority in overlapping markers, with lower vertical screen position breaking ties in specific cases. Setting `collisionBehavior` in code allows customization of display logic. It's recommended to use the same behavior for all advanced markers.\n"]]