نظرة عامة
تنظيم صفحاتك في مجموعات
يمكنك حفظ المحتوى وتصنيفه حسب إعداداتك المفضّلة.
اختيار النظام الأساسي:
Android
iOS
JavaScript
تتيح لك ميزة "تحديد الأنماط المستند إلى البيانات" للحدود الجغرافية الوصول إلى مضلّعات Google الخاصة بالحدود الإدارية، وتطبيق أنماط على مضلّعات الحدود، وعرضها على خرائطك.
تتيح لك ميزة "تحديد الأنماط المستند إلى البيانات" للحدود استهداف مناطق حسب معرّف المكان وتطبيق أنماط مخصّصة على المضلّعات الحدودية على الخريطة. يمثّل كل نوع من أنواع العناصر نوعًا من المناطق، ويمكنك اختيار أنواع العناصر التي تريد تفعيلها عند ضبط نمط خريطة.
راجِع تغطية حدود Google
للاطّلاع على تغطية الحدود في كل بلد.
أنواع الميزات
توفّر ميزة "التصميم المستند إلى البيانات" إمكانية الوصول إلى حدود Google لأنواع العناصر التي تمثّل مناطق إدارية. يتم تصنيف المناطق الإدارية حسب الوظيفة، مثل البلد والولاية والموقع الجغرافي والرمز البريدي. يتم ترتيب أنواع الميزات حسب المستوى الإداري، ويختلف هيكلها حسب البلد.
تتوفّر أنواع الميزات التالية لتطبيق أنماط مستندة إلى البيانات على الحدود:
-
COUNTRY
: الكيان السياسي الوطني، وهو عادةً النوع الأعلى ترتيبًا
ADMINISTRATIVE_AREA_LEVEL_1
: منطقة إدارية من الدرجة الأولى تندرج تحت مستوى البلد داخل الولايات المتحدة، تكون هذه المستويات الإدارية هي الولايات.
-
ADMINISTRATIVE_AREA_LEVEL_2
: منطقة إدارية من الدرجة الثانية تندرج تحت مستوى البلد داخل الولايات المتحدة، تكون هذه المستويات الإدارية هي المقاطعات.
-
LOCALITY
: كيان سياسي لمدينة أو بلدة مُدمَجة
-
POSTAL_CODE
: رمز بريدي، كما يُستخدَم لتوجيه البريد داخل البلد.
SCHOOL_DISTRICT
— منطقة تعليمية، وتشمل المناطق الموحّدة والابتدائية
والثانوية
يتم تمثيل المناطق الإدارية على الخريطة كطبقات عناصر، ولكل نوع طبقة خاصة به. يتم تفعيل طبقات العناصر لكل نمط خريطة. يمكنك اختيار طبقات الميزات التي تريد تفعيلها عند إعداد نمط الخريطة في Google Cloud Console.
تحديد نمط مضلّعات الحدود
يمكنك تطبيق أنماط على المضلّعات الحدودية للتعبئة (اللون، درجة التعتيم) والخطوط (اللون، درجة التعتيم، سُمك الخط). يمكنك استخدام الأنماط لتنفيذ ما يلي:
تعرض تغطية حدود Google مدى توفّر أنواع الميزات في كل بلد.
الخطوات التالية
إنّ محتوى هذه الصفحة مرخّص بموجب ترخيص Creative Commons Attribution 4.0 ما لم يُنصّ على خلاف ذلك، ونماذج الرموز مرخّصة بموجب ترخيص Apache 2.0. للاطّلاع على التفاصيل، يُرجى مراجعة سياسات موقع Google Developers. إنّ Java هي علامة تجارية مسجَّلة لشركة Oracle و/أو شركائها التابعين.
تاريخ التعديل الأخير: 2025-08-31 (حسب التوقيت العالمي المتفَّق عليه)
[null,null,["تاريخ التعديل الأخير: 2025-08-31 (حسب التوقيت العالمي المتفَّق عليه)"],[[["\u003cp\u003eData-driven styling for boundaries allows you to style Google's administrative boundary polygons and display them on your maps, targeting regions by place ID.\u003c/p\u003e\n"],["\u003cp\u003eYou can select from various feature types like \u003ccode\u003eCOUNTRY\u003c/code\u003e, \u003ccode\u003eADMINISTRATIVE_AREA_LEVEL_1\u003c/code\u003e, \u003ccode\u003eLOCALITY\u003c/code\u003e, and more, to enable on your map style.\u003c/p\u003e\n"],["\u003cp\u003eBoundary polygon styling options include fill (color, opacity) and stroke (color, opacity, stroke weight), enabling features like highlighting specific boundaries or creating choropleth maps.\u003c/p\u003e\n"],["\u003cp\u003eGoogle provides per-country boundary coverage information to understand the availability of feature types for different regions.\u003c/p\u003e\n"],["\u003cp\u003eData-driven styling for boundaries can be integrated with the Geocoding and Places APIs for enhanced functionality.\u003c/p\u003e\n"]]],[],null,["# Overview\n\nSelect 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,\nand display them on your 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 style](/maps/documentation/android/dds-boundaries/start).\n\nConsult [Google boundaries coverage](/maps/documentation/android/dds-boundaries/coverage)\nto see per-country boundary coverage.\n\nFeature types\n-------------\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.\nThe following feature types are supported for data-driven styling for boundaries:\n\n- `COUNTRY` --- The national political entity, typically the highest order type.\n- `ADMINISTRATIVE_AREA_LEVEL_1` --- A first-order civil entity below the country level. Within the United States, these administrative levels are states.\n- `ADMINISTRATIVE_AREA_LEVEL_2` --- A second-order civil entity below the country level. Within the United States, these administrative levels are counties.\n- `LOCALITY` --- An incorporated city or town political entity.\n- `POSTAL_CODE` --- A postal code, as used to address postal mail within the country.\n- `SCHOOL_DISTRICT` --- A school district; includes unified, elementary, and secondary.\n\nAdministrative areas are represented on the map as feature layers; each type\nhas its own layer. Feature layers are enabled per map style. You can choose\nwhich feature layers to enable when [setting up your map style in the Google Cloud console](/maps/documentation/android/dds-boundaries/start).\n\nStyle boundary polygons\n-----------------------\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](/maps/documentation/android/dds-boundaries/style-polygon) or show all the boundaries for a feature type.\n- [Create a choropleth map](/maps/documentation/android/dds-boundaries/choropleth-map).\n\n[Google boundaries coverage](/maps/documentation/android/dds-boundaries/coverage)\nshows per-country availability of feature types.\n\nNext steps\n----------\n\n- [Get started with data-driven styling for boundaries](/maps/documentation/android/dds-boundaries/start)\n- [Style a boundary polygon](/maps/documentation/android/dds-boundaries/style-polygon)\n- [Make a choropleth map](/maps/documentation/android/dds-boundaries/choropleth-map)\n- [Handle click events](/maps/documentation/android/dds-boundaries/handle-events)\n- [Use the Geocoding and Places APIs with data-driven styling for boundaries](/maps/documentation/android/dds-boundaries/dds-use-maps-places-apis)"]]