ภาพรวม
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
การจัดรูปแบบขอบเขตตามข้อมูลช่วยให้คุณเข้าถึงรูปหลายเหลี่ยมของ Google สำหรับ
ขอบเขตการบริหาร จัดรูปแบบรูปหลายเหลี่ยมของขอบเขต
แสดงบนแผนที่ และรวมข้อมูลธุรกิจของคุณเองเพื่อสร้างแผนที่ Choropleth ที่กำหนดเอง
ซึ่งมีข้อมูลมากมาย
การจัดรูปแบบตามข้อมูลสำหรับขอบเขตช่วยให้คุณกำหนดเป้าหมายภูมิภาคตามรหัสสถานที่ และใช้
การจัดรูปแบบที่กำหนดเองกับรูปหลายเหลี่ยมของขอบเขตบนแผนที่ได้ ฟีเจอร์แต่ละประเภทแสดงถึง
ประเภทภูมิภาค คุณเลือกได้ว่าจะเปิดใช้ฟีเจอร์ประเภทใดเมื่อกำหนดค่ารูปแบบแผนที่
โปรดดูขอบเขตที่ Google ครอบคลุม
เพื่อดูขอบเขตที่ครอบคลุมในแต่ละประเทศ
ประเภทฟีเจอร์
การจัดรูปแบบตามข้อมูลช่วยให้เข้าถึงขอบเขตของ Google สำหรับประเภทฟีเจอร์ที่
แสดงถึงเขตบริหาร พื้นที่การบริหารจะจัดหมวดหมู่ตาม
ฟังก์ชัน เช่น ประเทศ รัฐ ท้องถิ่น และรหัสไปรษณีย์ ประเภทฟีเจอร์
จะจัดเรียงตามระดับการบริหาร ซึ่งโครงสร้างจะแตกต่างกันไปในแต่ละประเทศ
ระบบรองรับฟีเจอร์ประเภทต่อไปนี้
COUNTRY
— หน่วยงานทางการเมืองระดับประเทศ ซึ่งโดยทั่วไปจะเป็นประเภทที่มีลำดับสูงสุด
ADMINISTRATIVE_AREA_LEVEL_1
— หน่วยงานพลเรือนระดับที่ 1 ที่ต่ำกว่าระดับประเทศ ในสหรัฐอเมริกา ระดับการบริหารเหล่านี้คือรัฐ
ADMINISTRATIVE_AREA_LEVEL_2
— หน่วยงานพลเรือนระดับที่ 2 ที่ต่ำกว่าระดับประเทศ ภายในสหรัฐอเมริกา ระดับการบริหาร
เหล่านี้คือเทศมณฑล
LOCALITY
— หน่วยงานทางการเมืองของเมืองหรือเทศบาลที่จดทะเบียน
POSTAL_CODE
— รหัสไปรษณีย์ที่ใช้ในการส่งจดหมายภายในประเทศ
SCHOOL_DISTRICT
— เขตการศึกษา รวมถึงเขตการศึกษาแบบรวม เขตการศึกษาประถมศึกษา และเขตการศึกษามัธยมศึกษา
พื้นที่การปกครองจะแสดงในแผนที่เป็นเลเยอร์ฟีเจอร์ โดยแต่ละประเภท
จะมีเลเยอร์ของตัวเอง เปิดใช้เลเยอร์ฟีเจอร์ต่อรูปแบบแผนที่ คุณเลือกได้ว่าจะเปิดใช้เลเยอร์ฟีเจอร์ใดเมื่อตั้งค่ารูปแบบแผนที่ใน Google Cloud Console
กำหนดรูปแบบรูปหลายเหลี่ยมขอบเขต
คุณสามารถใช้รูปแบบกับรูปหลายเหลี่ยมขอบเขตสำหรับการเติม (สี ความทึบแสง) และเส้นขอบ
(สี ความทึบแสง น้ำหนักของเส้นขอบ) ใช้การจัดรูปแบบเพื่อทำสิ่งต่อไปนี้
ความครอบคลุมของขอบเขตของ Google
แสดงความพร้อมให้บริการของประเภทฟีเจอร์ในแต่ละประเทศ
ขั้นตอนถัดไป
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-08-31 UTC
[null,null,["อัปเดตล่าสุด 2025-08-31 UTC"],[[["\u003cp\u003eData-driven styling for boundaries allows you to style Google's administrative boundary polygons and combine them with your own data to create customized maps, such as choropleth maps.\u003c/p\u003e\n"],["\u003cp\u003eYou can target specific regions using place IDs and apply custom styling to boundary polygons based on feature types like country, state, locality, and postal code.\u003c/p\u003e\n"],["\u003cp\u003eBoundary coverage varies by country and feature type, allowing you to style polygons with fill and stroke properties for visualization.\u003c/p\u003e\n"],["\u003cp\u003eTo get started, configure your map style, obtain place IDs for regions, and explore advanced features like creating choropleth maps and handling mouse events.\u003c/p\u003e\n"],["\u003cp\u003eRefer to the Google boundaries coverage documentation to understand the availability of feature types for different countries.\u003c/p\u003e\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,\ndisplay them on your maps, and combine your own business data to create rich,\ncustomized choropleth 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/javascript/dds-boundaries/start).\n\nConsult [Google boundaries coverage](/maps/documentation/javascript/dds-boundaries/coverage)\nto see per-country boundary 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.\nThe following feature types are supported:\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/javascript/dds-boundaries/start).\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](/maps/documentation/javascript/dds-boundaries/style-polygon) or show all the boundaries for a feature type.\n- [Create a choropleth map](/maps/documentation/javascript/dds-boundaries/choropleth-map) by joining your own business data.\n\n[Google boundaries coverage](/maps/documentation/javascript/dds-boundaries/coverage)\nshows per-country availability of feature types.\n\nNext steps\n\n- [Get started with data-driven styling for boundaries](/maps/documentation/javascript/dds-boundaries/start)\n- [Get a place ID for a region](/maps/documentation/javascript/dds-boundaries/dds-use-maps-places-apis#use_to_find_a_region)\n- [Use the Geocoding and Places APIs with data-driven styling for boundaries](/maps/documentation/javascript/dds-boundaries/dds-use-maps-places-apis)\n- [Style a boundary polygon](/maps/documentation/javascript/dds-boundaries/style-polygon)\n- [Make a choropleth map](/maps/documentation/javascript/dds-boundaries/choropleth-map)\n- [Handle mouse events](/maps/documentation/javascript/dds-boundaries/handle-events)"]]