Mit datengestützten Stilen für Grenzen können Sie auf Google-Polygone für Verwaltungsgrenzen zugreifen, Stile auf Begrenzungspolygone anwenden und sie auf Ihren Karten darstellen.
Sie können Regionen gezielt nach Orts-ID bearbeiten und benutzerdefinierte Stile auf Begrenzungspolygone auf der Karte anwenden. Jeder Featuretyp stellt einen Regionstyp dar. Sie wählen die Featuretypen aus, die aktiviert werden sollen, wenn Sie einen Kartenstil konfigurieren. Unter Abdeckung von Google-Grenzen erfahren Sie mehr über die unterschiedliche Abdeckung je nach Land.
Elementtypen
Datengestützte Stile bieten Zugriff auf Google-Grenzen für Elementtypen, die Verwaltungsgebiete repräsentieren. Verwaltungsgebiete sind nach Funktion kategorisiert, z. B. Land, Bundesland, Ort und Postleitzahl. Die Elementtypen sind nach Verwaltungsebene angeordnet, deren Struktur je nach Land variiert.
Dazu gehören:
GMSFeatureTypeCountry (Land): Die nationale Verwaltungseinheit, in der Regel die der höchsten Ebene.
GMSFeatureTypeAdministrativeAreaLevel1: Eine öffentliche Verwaltungseinheit eine Stufe unterhalb der Landesebene. In den USA sind diese Verwaltungsebenen die Bundesstaaten.
GMSFeatureTypeAdministrativeAreaLevel2 (Verwaltungsgebiet, Stufe 2): Eine öffentliche Verwaltungseinheit zwei Stufen unterhalb der Landesebene. In den USA sind diese Verwaltungsebenen die Countys.
GMSFeatureTypeLocality (Ort): Eine politische Einheit in Form einer Stadt oder Gemeinde.
GMSFeatureTypePostalCode (Postleitzahl): Eine Postleitzahl, wie sie zum Adressieren von Postsendungen innerhalb des Landes verwendet wird.
GMSFeatureTypeSchoolDistrict (Schulbezirk): Ein Schulbezirk, einschließlich Gesamtschulen, Grundschulen und weiterführenden Schulen.
Verwaltungsgebiete werden auf der Karte als Elementebenen dargestellt. Jeder Typ von Verwaltungsgebiet hat eine eigene Ebene. Elementebenen werden pro Kartenstil aktiviert. Sie können auswählen, welche Elementebenen aktiviert werden sollen, wenn Sie den Kartenstil in der Google Cloud Console einrichten.
Begrenzungspolygone gestalten
Auf Begrenzungspolygone können Stile für Füllung (Farbe, Deckkraft) und Strich (Farbe, Deckkraft, Strichstärke) angewendet werden. Sie haben folgende Möglichkeiten:
Sie können ein Begrenzungspolygon gestalten oder alle Begrenzungen für einen Elementtyp anzeigen.
[[["Leicht verständlich","easyToUnderstand","thumb-up"],["Mein Problem wurde gelöst","solvedMyProblem","thumb-up"],["Sonstiges","otherUp","thumb-up"]],[["Benötigte Informationen nicht gefunden","missingTheInformationINeed","thumb-down"],["Zu umständlich/zu viele Schritte","tooComplicatedTooManySteps","thumb-down"],["Nicht mehr aktuell","outOfDate","thumb-down"],["Problem mit der Übersetzung","translationIssue","thumb-down"],["Problem mit Beispielen/Code","samplesCodeIssue","thumb-down"],["Sonstiges","otherDown","thumb-down"]],["Zuletzt aktualisiert: 2025-07-27 (UTC)."],[[["\u003cp\u003eData-driven styling enables applying custom styles to Google's administrative boundary polygons on your maps, targeting regions by place ID.\u003c/p\u003e\n"],["\u003cp\u003eYou can select specific feature types like countries, states, localities, and postal codes to display on your map.\u003c/p\u003e\n"],["\u003cp\u003eBoundary polygons can be styled with fill and stroke properties to create visual effects or choropleth maps.\u003c/p\u003e\n"],["\u003cp\u003eGoogle provides boundary data for various countries, and coverage details are available in the documentation.\u003c/p\u003e\n"],["\u003cp\u003eData-driven styling is available across Android, iOS, and JavaScript platforms.\u003c/p\u003e\n"]]],["Data-driven styling allows accessing and styling Google's administrative boundary polygons on maps. Users can target regions by place ID and apply custom styling to the polygons. Feature types, categorized by administrative level (e.g., country, state, locality, postal code, school district), are accessed via layers within map styles. Styling options include fill color and opacity, as well as stroke color, opacity, and weight, enabling the creation of choropleth maps or individual boundary styles. Availability of these feature types varies by country.\n"],null,["Select platform: [Android](/maps/documentation/android-sdk/dds-boundaries/overview \"View this page for the Android platform docs.\") [iOS](/maps/documentation/ios-sdk/dds-boundaries/overview \"View this page for the iOS platform docs.\") [JavaScript](/maps/documentation/javascript/dds-boundaries/overview \"View this page for the JavaScript platform docs.\")\n\n\u003cbr /\u003e\n\nData-driven styling for boundaries lets you access Google's polygons for\nadministrative boundaries, apply styling to boundary polygons, display them on\nyour maps.\n\nData-driven styling for boundaries lets you target regions by place ID, and apply\ncustom styling to boundary polygons on the map. Each feature type represents a\ntype of region; you select which feature types to enable when configuring a map\nstyle. Consult [Google boundaries coverage](/maps/documentation/ios-sdk/dds-boundaries/coverage) to see per-country\nboundary coverage.\n\nFeature types\n\nData-driven styling provides access to Google boundaries for feature types that\nrepresent administrative areas. Administrative areas are categorized by\nfunction, for example country, state, locality, and postal code. Feature types\nare arranged by administrative level, the structure of which varies by country.\nThese include:\n\n- `GMSFeatureTypeCountry` --- The national political entity, typically the highest order type.\n- `GMSFeatureTypeAdministrativeAreaLevel1` - A first-order civil entity below the country level. Within the United States, these administrative levels are states.\n- `GMSFeatureTypeAdministrativeAreaLevel2` --- A second-order civil entity below the country level. Within the United States, these administrative levels are counties.\n- `GMSFeatureTypeLocality` --- An incorporated city or town political entity.\n- `GMSFeatureTypePostalCode` --- A postal code, as used to address postal mail within the country.\n- `GMSFeatureTypeSchoolDistrict` --- A school district; includes unified, elementary, and secondary.\n\nAdministrative areas are represented on the map as feature layers; each type has\nits own layer. Feature layers are enabled per map style. You can choose which\nfeature layers to enable when setting up your map style in the\nGoogle Cloud console.\n\nStyle boundary polygons\n\nYou can apply styles to boundary polygons for fill (color, opacity), and stroke\n(color, opacity, stroke weight). Use styling to:\n\n- Style a boundary polygon or show all the boundaries for a feature type.\n- Create a choropleth map.\n\n[Google boundaries coverage](/maps/documentation/ios-sdk/dds-boundaries/coverage) shows per-country availability of feature\ntypes."]]