Nowy styl mapy będzie wkrótce dostępny w Google Maps Platform. Ta aktualizacja stylu mapy obejmuje nową domyślną paletę kolorów oraz ulepszenia ułatwiające obsługę i łatwość obsługi map. Wszystkie style mapy zostaną automatycznie zaktualizowane w marcu 2025 r. Więcej informacji o dostępności i sposobie włączania tej funkcji znajdziesz w artykule Nowy styl mapy w Google Maps Platform.
Aby nadać styl wypełnieniu i obrysowi wielokąta granicznego, użyj funkcji stylizacji, która przyjmuje parametr GMSPlaceFeature i zwraca parametr GMSFeatureStyle, aby zdefiniować atrybuty stylu. Następnie ustaw właściwość style jako zamknięcie stylizacji, które zawiera logikę stylizacji.
[null,null,["Ostatnia aktualizacja: 2025-01-14 UTC."],[[["This documentation explains how to style the fill and stroke of boundary polygons using a styling closure that takes a `GMSPlaceFeature` and returns a `GMSFeatureStyle`."],["The styling closure defines the style attributes for the polygon, such as fill color, stroke color, and stroke width."],["Styling Places data might require integrating the Places SDK for iOS, although it's not always mandatory."],["Code examples in Swift and Objective-C demonstrate how to apply a purple style to a specific boundary polygon using its place ID."]]],[]]