سبک نقشه پایه جدید به زودی به پلتفرم نقشه های گوگل می آید. این بهروزرسانی برای استایل نقشه شامل یک پالت رنگی پیشفرض جدید، پینهای مدرن شده و بهبودهایی در تجربهها و قابلیت استفاده از نقشه است. همه سبکهای نقشه بهطور خودکار در مارس 2025 بهروزرسانی میشوند. برای اطلاعات بیشتر در مورد در دسترس بودن و نحوه انتخاب زودتر، به سبک نقشه جدید برای پلتفرم Google Maps مراجعه کنید.
این مثال مرزهای نقشه برای GMSFeatureTypeLocality را نشان میدهد و تابع نماینده را که به چند ضلعی کلیک شده استایل میدهد، پیادهسازی میکند. در نتیجه یک پنجره هشدار اطلاعات با داده های رویداد نمایش داده می شود.
تاریخ آخرین بهروزرسانی 2025-03-11 بهوقت ساعت هماهنگ جهانی.
[[["درک آسان","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-03-11 بهوقت ساعت هماهنگ جهانی."],[[["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"]]