मैप की नई स्टाइल, जल्द ही Google Maps Platform पर उपलब्ध होगी. मैप की स्टाइल में हुए इस अपडेट में, नया डिफ़ॉल्ट कलर पटल जोड़ा गया है. साथ ही, मैप के अनुभवों और उसे इस्तेमाल करने के तरीके में सुधार भी किए गए हैं. मार्च 2025 में, सभी मैप स्टाइल अपने-आप अपडेट हो जाएंगी. उपलब्धता और जल्दी ऑप्ट इन करने के तरीके के बारे में ज़्यादा जानकारी के लिए, Google Maps Platform के लिए नई मैप स्टाइल देखें.
इस उदाहरण में, 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"]]