يوضّح هذا المثال حدود الخريطة الخاصة بـ
GMSFeatureTypeLocality، وينفّذ الدالة
delegate التي تضبط نمط المضلّع الذي تم النقر عليه. تعرض النتيجة نافذة تنبيه تتضمّن بيانات الحدث.
تاريخ التعديل الأخير: 2025-09-10 (حسب التوقيت العالمي المتفَّق عليه)
[[["يسهُل فهم المحتوى.","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 (حسب التوقيت العالمي المتفَّق عليه)"],[[["\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,[]]