Funkcje mapy, które możesz dostosować, są ułożone w hierarchii. Każda z nich ma co najmniej 1 element stylu, który możesz dostosować. Większość funkcji najwyższego poziomu ma co najmniej 1 funkcję podrzędną. Podczas dostosowywania stylów mapy masz kilka opcji:
Dziedziczenie ze stylu mapy podstawowej: jeśli nie dostosujesz elementu stylu dla funkcji mapy, odziedziczy ona styl domyślny z mapy podstawowej.
Dziedziczenie z elementów nadrzędnych: dostosuj element stylu w przypadku elementu nadrzędnego mapy, aby wszystkie niedostosowane elementy podrzędne mapy dziedziczyły style z elementu nadrzędnego.
Zastąpienie stylu nadrzędnego: dostosuj element stylu na mapie podrzędnej, aby zastąpić styl nadrzędny tego elementu.
Dostosowywanie poziomów powiększenia: w przypadku niektórych funkcji mapy możesz dostosować elementy stylu dla różnych poziomów powiększenia. Więcej informacji znajdziesz w artykule Poziomy powiększenia stylu.
Elementy mapy, których styl możesz zmienić
Elementy mapy mogą mieć co najmniej 1 z tych elementów stylu, które możesz dostosować w zależności od typu elementu mapy:
Widoczność: czy ta funkcja ma być widoczna na mapie.
Kolor wypełnienia: kolor wypełnienia wielokątów i polilinii.
Kolor konturu: kolor konturu wielokątów i polilinii.
Grubość kreski: grubość obrysu wielokątów i linii łamanych.
Wyniki mogą się różnić w zależności od poziomu powiększenia. Jeśli nie chcesz konturu, ustaw kolor kreski na taki sam jak kolor wypełnienia lub ustaw szerokość kreski na 0.
Ukrywanie elementów mapy lub ustawianie ich przezroczystości może ujawnić nieścisłości w granicach. Granice funkcji mapy nie zawsze są precyzyjne, ale są dostosowywane tak, aby wyglądały prawidłowo, gdy wszystkie warstwy są widoczne. Więcej informacji o tym, jak warstwy mapy wpływają na siebie nawzajem, znajdziesz w artykule Zarządzanie stylami, które się nakładają.
Istnieją 2 sposoby wyświetlania i ukrywania elementów mapy: widoczność i krycie.
Możesz też sprawić, że element mapy będzie przezroczysty, dostosowując nieprzezroczystość tych elementów stylu: kolor wypełnienia, kolor kreski, kolor wypełnienia tekstu i kolor kreski tekstu.
Gdy dostosujesz krycie elementu mapy, jego wygląd będzie zależeć od elementów mapy znajdujących się pod nim. Aby uniknąć nieoczekiwanych zmian stylu, ustaw styl niestandardowy dla wszystkich nakładających się funkcji.
Wielokąty i linie łamane
W przypadku typów obiektów na mapie, które są reprezentowane przez kształt, np. plaża, kraj i plac miejski, lub linię, np. tor kolejowy, autostrada i szlak, możesz zwykle dostosować te elementy: widoczność, kolor wypełnienia, kolor obrysu i szerokość obrysu.
Przykład dostosowywania stylu wielokąta – dla typu obiektu Reservation
Przykład dostosowywania stylu linii łamanej – w przypadku typu obiektu Autostrada
Dostosowywanie koloru i szerokości linii jest niedostępne w przypadku tych elementów mapy:
Elementy mapy politycznej: ich styl przekazuje znaczenie na mapie, np. wskazuje typ terytorium. Funkcje mapy politycznej to Kraj, Granica, Stan lub województwo i Podregion.
Budynki w stylu 3D.
Ikony i etykiety tekstowe
W przypadku typów obiektów na mapie, które są w całości lub częściowo reprezentowane przez etykietę, takich jak punkt orientacyjny lub transport, możesz zwykle określić styl tych elementów: widoczność, kolor ikony, kolor wypełnienia tekstu i kolor obrysu tekstu.
Przykład dostosowywania stylu tekstu i ikony etykiety
Hierarchia elementów mapy
W tabelach dotyczących funkcji mapy najwyższego poziomu znajdziesz informacje o tym, jakie funkcje mapy niższego poziomu są dostępne w ramach poszczególnych funkcji.
Ciekawe miejsce
Awaria
Straż pożarna
Szpital
Apteka
Policja
Rozrywka
Sztuka
Kasyno
Kino
Zabytki
Muzeum
Park rozrywki
Atrakcja turystyczna
Jedzenie i picie
Bar
Kawiarnia
Restauracja
Winiarnia
Punkt orientacyjny
Zakwaterowanie
Rekreacja
Plaża
Pływanie łódką
Wędkarstwo
Pole golfowe
Gorące źródło
Rezerwat przyrody
Park
Szczyt
Kompleks sportowy
Boisko sportowe
Początek szlaku
Zoo
Handel detaliczny
Artykuły spożywcze
Zakupy
Usługa
Bankomat
Bank
Wypożyczalnia samochodów
Ładowarka EV
Stacja benzynowa
Parking
Poczta
Miejsce odpoczynku
Toaleta
Transport publiczny
Port lotniczy
Inne
Most
Cmentarz
Instytucja państwowa
Biblioteka
Obiekt wojskowy
Miejsce kultu
Szkoła
Rynek
Polityka.
Kraj
Borders
Rezerwacja
Województwo
Miasto
Dzielnica
Dzielnica
Działka
Infrastruktura
* Funkcje mapy ze szczegółami dróg są dostępne tylko w usługach Google Maps Platform, w których włączone są szczegóły na poziomie dróg. Więcej informacji znajdziesz w artykule Szczegóły dotyczące dróg w Google Maps Platform.
Budynek
Komercyjne
Dzielnica biznesowa
Sieć drogowa
Brak ruchu
Deptak handlowy
Szlak
Utwardzona
Nieutwardzona
Alejka parkingowa
Rampa
Oznaczenie drogi
Znak drogowy
Droga
Droga główna
Autostrada
Droga lokalna
Brak wylotu
Szczegóły dróg*
Surface
Crosswalk
Sidewalk
Intersection
Tory kolejowe
Commercial
Commuter
Stacja transportu publicznego
Rowery publiczne
Dworzec autobusowy
Terminal promowy
Stacja kolei linowej
Stacja kolejki gondolowej
Kolej jednoszynowa
Stacja kolejowa
Stacja metra
Dworzec tramwajowy
Obszar miejski
Naturalne
† Elementy mapy pokrycia terenu są przybliżone i oparte na kolorach zdjęć satelitarnych, dlatego mogą nie odzwierciedlać rzeczywistych warunków.
Kontynent
Archipelag
Wyspa
Ląd
Pokrycie terenu†
Uprawy
Uprawy bez nawadniania
Las
Lód
Piasek
Krzewy
Tundra
[[["Łatwo zrozumieć","easyToUnderstand","thumb-up"],["Rozwiązało to mój problem","solvedMyProblem","thumb-up"],["Inne","otherUp","thumb-up"]],[["Brak potrzebnych mi informacji","missingTheInformationINeed","thumb-down"],["Zbyt skomplikowane / zbyt wiele czynności do wykonania","tooComplicatedTooManySteps","thumb-down"],["Nieaktualne treści","outOfDate","thumb-down"],["Problem z tłumaczeniem","translationIssue","thumb-down"],["Problem z przykładami/kodem","samplesCodeIssue","thumb-down"],["Inne","otherDown","thumb-down"]],["Ostatnia aktualizacja: 2025-09-05 UTC."],[[["\u003cp\u003eMap features are arranged hierarchically and can inherit styles from parent features or the base map, with options to override these styles for specific features or zoom levels.\u003c/p\u003e\n"],["\u003cp\u003eYou can customize the visibility, fill color, stroke color and width, icon color, and text fill and stroke color for various map features depending on their type.\u003c/p\u003e\n"],["\u003cp\u003eStroke customization is unavailable for political features and 3D buildings, while specific style elements apply to polygons, polylines, icons, and text labels individually.\u003c/p\u003e\n"],["\u003cp\u003eMap features are categorized into Points of Interest, Political, Infrastructure, and Natural, each with subcategories and customizable elements.\u003c/p\u003e\n"],["\u003cp\u003eThe documentation offers platform-specific guides for Android, iOS, JavaScript, and Web Services to implement these cloud-based map customizations.\u003c/p\u003e\n"]]],["Users can customize map features across Android, iOS, JavaScript, and Web Service platforms. Customization involves styling elements like visibility, fill color, stroke color/width, icon color, and text colors. Styles can inherit from the base map or parent features, or override them. Zoom level-specific styling is available. Visibility toggles allow displaying or hiding features. Polygons/polylines have customizable fills, strokes, and widths, while icons and text labels allow customization of their color. Map features are organized hierarchically, with examples provided for Points of Interest, Political areas, Infrastructure, and Natural features.\n"],null,["# What you can style on the map\n\nSelect platform: [Android](/maps/documentation/android-sdk/cloud-customization/taxonomy \"View this page for the Android platform docs.\") [iOS](/maps/documentation/ios-sdk/cloud-customization/taxonomy \"View this page for the iOS platform docs.\") [JavaScript](/maps/documentation/javascript/cloud-customization/taxonomy \"View this page for the JavaScript platform docs.\") [Web Service](/maps/documentation/maps-static/cloud-customization/taxonomy \"View this page for the Web Service platform docs.\")\n\n\u003cbr /\u003e\n\n\nThe map features you can customize are arranged in a hierarchy, and each map\nfeature has one or more style elements that you can customize. Most top-level\nfeatures have one or more child map features. You have several options when\ncustomizing map styles:\n\n- **Inherit from the base map style**: If you don't customize a style element\n for a map feature, it inherits the default style from the base map.\n\n- **Inherit from parents**: Customize a style element on a parent map feature,\n to have all un-customized child map features below inherit the styles from\n their parent.\n\n- **Override the parent style**: Customize a style element on a child map\n feature to override the parent style for that element.\n\n- **Customize zoom levels** : For some map features, you can customize style\n elements for different zoom levels. For details, see [Style zoom\n levels](/maps/documentation/ios-sdk/cloud-customization/zoom-levels).\n\nWhat you can style for each map feature\n---------------------------------------\n\nMap features can have one or more of the following style elements that you can\ncustomize, depending on the type of map feature:\n\n- **Visibility**: Whether to show or hide this feature on the map.\n\n- **Fill color**: Fill color for polygons and polylines.\n\n- **Stroke color**: Outline color for polygons and polylines.\n\n- **Stroke width**: Thickness of the outline for polygons and polylines.\n Results may vary depending on the zoom level. If you don't want an outline,\n set the Stroke color to be the same as the Fill color, or set the Stroke\n width to 0.\n\n- **Icon color**: Fill color for the icons.\n\n- **Text fill color**: Fill color for text labels.\n\n- **Text stroke color**: Outline color for text labels.\n\n| **Note:** Stroke color and Stroke width customizations are not available for all map features. For details, see [Polygons and Polylines](#polygons_and_polylines).\n\n### Map feature visibility\n\nWhen you hide map features or make them transparent, you may expose boundary\ninaccuracies. Map feature boundaries are not always precise, but are adjusted to\nlook correct when all layers are visible. To learn more about how map layers\naffect each other, see [Manage styles that overlap](/maps/documentation/ios-sdk/cloud-customization/overlap).\n\nThere are two ways to show or hide map features: visibility and opacity.\n\n#### Visibility\n\nTo either display or hide a map feature on your map, use the **Visibility**\nstyle element. For more details, see\n[Filter which map features to display](/maps/documentation/ios-sdk/cloud-customization/viz).\n| **Note:** Not all map features are shown on the map at all zoom levels. To see the map feature displayed or hidden, you may need to zoom in or out.\n\n#### Opacity\n\nYou can also make a map feature transparent by adjusting the opacity of the\nfollowing style elements: Fill color, Stroke color, Text fill color, and Text\nstroke color. \n\nWhen you adjust the opacity of a map feature, its appearance depends on the map\nfeatures underneath. To avoid unexpected style changes, set a custom style for\nall overlapping features.\n| **Note:** Opacity is not available for all map features.\n\n### Polygons and Polylines\n\nFor map feature types that are represented with a shape, such as Beach, Country,\nand Town square, or a line, such as Railway track, Highway, and Trail, you can\ntypically style the following elements: Visibility, Fill color, Stroke color,\nand Stroke width. \n\n*Polygon styling customization example - for **Reservation** feature type*\n\n*Polyline styling customization example - for **Highway** feature type*\n\nStroke color and Stroke width customizations are **not available** for the\nfollowing map features:\n\n- Political map features: Their style conveys meaning on the map, such\n as indicating the type of territory. The political map features are\n **Country** , **Border** , **State or province** , and **Sublocality**.\n\n- 3D style buildings.\n\n### Icons and Text Labels\n\nFor map feature types that are fully or partially represented with a label, such\nas Point of interest or Transportation, you can usually style the following\nelements: Visibility, Icon color, Text fill color, and Text stroke color. \n\n*Label text and icon styling customizations example*\n\nMap feature hierarchy\n---------------------\n\nThese tables for the top level map features show what child map features are\navailable under each.\n\n| ### Point of interest ||\n|----------------|-----------------------------------------------------------------------------------------------------------------|\n| Emergency | Fire Hospital Pharmacy Police |\n| Entertainment | Arts Casino Cinema Historic Museum Theme park Tourist attraction |\n| Food and drink | Bar Cafe Restaurant Winery |\n| Landmark | |\n| Lodging | |\n| Recreation | Beach Boating Fishing Golf course Hot spring Nature reserve Park Peak Sports complex Sports field Trailhead Zoo |\n| Retail | Grocery Shopping |\n| Service | ATM Bank Car rental EV charging Gas station Parking lot Post office Rest stop Restroom |\n| Transit | Airport |\n| Other | Bridge Cemetery Government Library Military Place of worship School Town square |\n\n| ### Political ||\n|-------------------|---|\n| Country | |\n| Border | |\n| Reservation | |\n| State or province | |\n| City | |\n| Sublocality | |\n| Neighborhood | |\n| Land parcel | |\n\n| ### Infrastructure ||||\n|-------------------|---------------------|-----------------------------------------|---------------|\n| Building | Commercial | | |\n| Business corridor | | | |\n| Road network | No traffic | Pedestrian mall |\n| Road network | No traffic | Trail | Paved Unpaved |\n| Road network | Parking aisle | | |\n| Road network | Ramp | | |\n| Road network | Road shield | | |\n| Road network | Road sign | | |\n| Road network | Road | Arterial Highway Local No outlet | |\n| Road network | Road detail^\\*^ | Surface Crosswalk Sidewalk Intersection | |\n| Railway track | Commercial Commuter | | |\n| Transit station | Bicycle share | | |\n| Transit station | Bus station | | |\n| Transit station | Ferry terminal | | |\n| Transit station | Funicular station | | |\n| Transit station | Gondola station | | |\n| Transit station | Monorail | | |\n| Transit station | Rail station | Subway station Tram station | |\n| Urban area | | | |\n\n| ### Natural |||\n|-------------|------------------------|----------------------------------------------|\n| Continent | | |\n| Archipelago | | |\n| Island | | |\n| Land | Land cover^†^ | Crops Dry crops Forest Ice Sand Shrub Tundra |\n| Water | Ocean Lake River Other | |\n| Base | | |"]]