Always display the marker regardless of collision, and hide any
CollisionBehaviorOptionalAndHidesLowerPriority markers or labels that would overlap with the
marker.
Display the marker only if it does not overlap with other markers. Does not include
GMSCollisionBehaviorRequired. If two markers of this type would overlap, the one with the
higher zIndex is shown. Collision rules for markers with the same zIndex is undefined.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-11-15 UTC."],[[["\u003cp\u003e\u003ccode\u003eGMSCollisionBehavior\u003c/code\u003e controls how markers interact with each other and map labels, with \u003ccode\u003eGMSCollisionBehaviorRequired\u003c/code\u003e as the default, ensuring markers always display.\u003c/p\u003e\n"],["\u003cp\u003eMarker display priority is determined by Collision Behavior (Required > Optional) and then by zIndex (higher > lower).\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eGMSCollisionBehaviorRequiredAndHidesOptional\u003c/code\u003e markers always display and hide overlapping optional markers or labels.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eGMSCollisionBehaviorOptionalAndHidesLowerPriority\u003c/code\u003e markers display only if they don't overlap with required markers or higher zIndex optional markers, with undefined behavior for same zIndex optional markers.\u003c/p\u003e\n"]]],[],null,["GMSCollisionBehavior \n\n enum GMSCollisionBehavior : NSInteger {}\n\nHow markers interact with other markers and regular labels. Defaults to\n`GMSCollisionBehaviorRequired`.\n\nMarker collisions occur when coordinates intersect.\n\nPriority is defined as:\n1) Required \\\u003e Optional\n2) zIndex: higher zIndex \\\u003e lower zIndex\n\nBeyond this, it is undefined which marker will show if both are optional and have the same\nzIndex.\nRegular map labels are the lowest priority.\n- `\n ``\n ``\n `\n\n [GMSCollisionBehaviorRequired](#/c:@E@GMSCollisionBehavior@GMSCollisionBehaviorRequired)`\n ` \n Always display the marker regardless of collision. This is the default behavior.\n Has no impact on whether any other markers or basemap labels show. \n\n Declaration \n Swift \n\n case required = 0\n\n Objective-C \n\n GMSCollisionBehaviorRequired\n\n- `\n ``\n ``\n `\n\n [GMSCollisionBehaviorRequiredAndHidesOptional](#/c:@E@GMSCollisionBehavior@GMSCollisionBehaviorRequiredAndHidesOptional)`\n ` \n Always display the marker regardless of collision, and hide any\n CollisionBehaviorOptionalAndHidesLowerPriority markers or labels that would overlap with the\n marker. \n\n Declaration \n Swift \n\n case requiredAndHidesOptional = 1\n\n Objective-C \n\n GMSCollisionBehaviorRequiredAndHidesOptional\n\n- `\n ``\n ``\n `\n\n [GMSCollisionBehaviorOptionalAndHidesLowerPriority](#/c:@E@GMSCollisionBehavior@GMSCollisionBehaviorOptionalAndHidesLowerPriority)`\n ` \n Display the marker only if it does not overlap with other markers. Does not include\n [GMSCollisionBehaviorRequired](../Enums/GMSCollisionBehavior.html#/c:@E@GMSCollisionBehavior@GMSCollisionBehaviorRequired). If two markers of this type would overlap, the one with the\n higher zIndex is shown. Collision rules for markers with the same zIndex is undefined. \n\n Declaration \n Swift \n\n case optionalAndHidesLowerPriority = 2\n\n Objective-C \n\n GMSCollisionBehaviorOptionalAndHidesLowerPriority"]]