В этом примере показаны границы карты для GMSFeatureTypeLocality и реализована функция делегата , которая стилизует выбранный многоугольник. В результате отображается информационное окно с данными о событии.
[[["Прост для понимания","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-10 UTC."],[[["\u003cp\u003eThis documentation demonstrates handling click events on map boundaries, specifically using \u003ccode\u003eGMSFeatureTypeLocality\u003c/code\u003e for the example.\u003c/p\u003e\n"],["\u003cp\u003eWhen a boundary is clicked, an info window appears displaying event data, such as the place IDs of the clicked features.\u003c/p\u003e\n"],["\u003cp\u003eIt's crucial to note that map boundaries need a minimum alpha value for click events to register, ensuring they are tappable.\u003c/p\u003e\n"],["\u003cp\u003eSample code snippets in Swift and Objective-C are provided for implementation guidance on setting up and responding to click events on map boundaries.\u003c/p\u003e\n"]]],["The content demonstrates handling map boundary click events for the `GMSFeatureTypeLocality` feature on iOS. Key actions include setting a style for locality features (orange with 50% opacity fill, orange stroke, width of 2) and implementing a delegate function. This function triggers an alert showing the `placeID` of the features that are clicked. The code examples are shown in both Swift and Objective-C. Note that a minimal alpha value is required for the polygon features to be tappable.\n"],null,[]]