استایلسازی مبتنی بر داده برای مرزها به شما امکان میدهد به چند ضلعیهای Google برای مرزهای اداری دسترسی داشته باشید، سبکسازی را برای چند ضلعیهای مرزی اعمال کنید، آنها را روی نقشههای خود نمایش دهید.
استایلسازی مبتنی بر داده برای مرزها به شما امکان میدهد مناطق را با شناسه مکان هدفگیری کنید و استایل سفارشی را برای چند ضلعیهای مرزی روی نقشه اعمال کنید. هر نوع ویژگی نشان دهنده یک نوع منطقه است. شما انتخاب می کنید که در هنگام پیکربندی سبک نقشه، کدام نوع ویژگی فعال شود. برای مشاهده پوشش مرزهای هر کشور، با پوشش مرزهای Google مشورت کنید.
انواع ویژگی ها
سبکهای مبتنی بر داده، دسترسی به مرزهای Google را برای انواع ویژگیهایی که مناطق اداری را نشان میدهند، فراهم میکند. مناطق اداری بر اساس عملکرد، به عنوان مثال کشور، ایالت، محل و کد پستی طبقه بندی می شوند. انواع ویژگی ها بر اساس سطح اداری مرتب می شوند که ساختار آن بر اساس کشور متفاوت است. این موارد عبارتند از:
GMSFeatureTypeCountry - نهاد سیاسی ملی، معمولاً بالاترین نوع.
GMSFeatureTypeAdministrativeAreaLevel1 - یک نهاد مدنی درجه یک زیر سطح کشور. در داخل ایالات متحده، این سطوح اداری ایالت ها هستند.
GMSFeatureTypeAdministrativeAreaLevel2 - یک نهاد مدنی درجه دوم زیر سطح کشور. در داخل ایالات متحده، این سطوح اداری شهرستان ها هستند.
GMSFeatureTypeLocality - یک نهاد سیاسی در شهر یا شهرک.
GMSFeatureTypePostalCode - یک کد پستی که برای آدرس دهی نامه های پستی در داخل کشور استفاده می شود.
GMSFeatureTypeSchoolDistrict - یک منطقه مدرسه. شامل یکپارچه، ابتدایی و ثانویه است.
مناطق اداری بر روی نقشه به عنوان لایه های ویژگی نشان داده می شوند. هر نوع لایه مخصوص به خود را دارد. لایه های ویژگی در هر سبک نقشه فعال می شوند. میتوانید هنگام تنظیم سبک نقشه خود در کنسول Google Cloud، لایههای ویژگی را انتخاب کنید که فعال شوند.
چند ضلعی های مرزی سبک
میتوانید استایلها را برای چند ضلعیهای مرزی برای پر (رنگ، کدورت) و ضربه (رنگ، تیرگی، وزن ضربه) اعمال کنید. استفاده از یک ظاهر طراحی شده برای:
به یک چند ضلعی مرزی سبک دهید یا تمام مرزهای یک نوع ویژگی را نشان دهید.
تاریخ آخرین بهروزرسانی 2025-07-23 بهوقت ساعت هماهنگ جهانی.
[[["درک آسان","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-07-23 بهوقت ساعت هماهنگ جهانی."],[[["\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."]]