עיצוב מפות חדש יתווסף בקרוב לפלטפורמה של מפות Google. העדכון הזה בסגנון המפה כולל לוח צבעים חדש שמוגדר כברירת מחדל ושיפורים בחוויית השימוש במפות ובנוחות השימוש. כל סגנונות המפה יעודכנו באופן אוטומטי במרץ 2025. אפשר לקרוא מידע נוסף על זמינות ועל האפשרות להצטרף בשלב מוקדם יותר במאמר בנושא סגנון מפה חדש לפלטפורמה של מפות Google.
בדוגמה הזו מוצגים גבולות המפה של GMSFeatureTypeLocality, והיא מיישמת את הפונקציה delegate שמגדירה את הסגנון של הפוליגון שנלחץ עליו. התוצאה היא חלון התראה עם מידע על נתוני האירוע.
[[["התוכן קל להבנה","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-01-14 (שעון UTC)."],[[["This documentation demonstrates handling click events on map boundaries, specifically using `GMSFeatureTypeLocality` for the example."],["When a boundary is clicked, an info window appears displaying event data, such as the place IDs of the clicked features."],["It's crucial to note that map boundaries need a minimum alpha value for click events to register, ensuring they are tappable."],["Sample code snippets in Swift and Objective-C are provided for implementation guidance on setting up and responding to click events on map boundaries."]]],["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"]]