ปรับแต่งแผนที่
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
คุณมีตัวเลือกหลายอย่างในการปรับแต่งแผนที่ Google Maps Platform (GMP) วิธีการส่วนใหญ่เหล่านี้กำหนดให้คุณต้องใช้รหัสแผนที่เพื่อเข้าถึงฟีเจอร์การปรับแต่งแผนที่ต่างๆ
นอกจากนี้ คุณยังปรับแต่งแผนที่ GMP ด้วยตนเองได้โดยใช้การจัดรูปแบบ JSON
ปรับแต่งแผนที่ด้วยรหัสแผนที่
รหัสแผนที่เป็นตัวระบุที่ไม่ซ้ำกันซึ่งแสดงถึงอินสแตนซ์เดียวของ Google
Map รหัสแผนที่จะจำกัดไว้สำหรับแพลตฟอร์มเดียว ได้แก่ JavaScript, Android, iOS หรือ
แผนที่แบบคงที่ คุณเชื่อมโยงรหัสแผนที่กับโปรเจ็กต์ และใช้รหัสแผนที่เพื่อเปิดใช้
ฟีเจอร์ หรือจัดการหรือจัดรูปแบบแผนที่ในเว็บไซต์และแอปพลิเคชันได้ โปรดดูรายละเอียดที่ภาพรวมรหัสแผนที่
ปรับแต่งด้วยรหัสแผนที่และการจัดรูปแบบแผนที่ในระบบคลาวด์
การจัดรูปแบบแผนที่ในระบบคลาวด์ช่วยให้คุณใช้รหัสแผนที่และรูปแบบแผนที่เพื่อสร้าง
ประสบการณ์แผนที่ถนนที่ปรับแต่งแล้วสำหรับผู้ใช้ จากนั้นคุณสามารถอัปเดตสไตล์ตามที่ต้องการใน Cloud Console โดยไม่ต้องอัปเดตโค้ดของแอป โปรดดูรายละเอียดที่การจัดรูปแบบแผนที่ในระบบคลาวด์
ปรับแต่งแผนที่ด้วยตนเองโดยใช้การจัดรูปแบบ JSON
การปรับแต่งแผนที่ด้วยตนเองช่วยให้คุณจัดรูปแบบประเภทแผนที่ปกติได้ และไม่
ต้องใช้รหัสแผนที่ การอัปเดตสไตล์จะต้องมีการอัปเดตโค้ด คุณไม่สามารถ
รวมการจัดรูปแบบแผนที่ด้วยตนเองและการจัดรูปแบบแผนที่ในระบบคลาวด์ไว้ในแอปเดียวกันได้
หากต้องการปรับแต่งแผนที่ด้วยตนเองโดยใช้การจัดรูปแบบ JSON โปรดดู
เพิ่มแผนที่ที่มีการจัดรูปแบบ
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-08-31 UTC
[null,null,["อัปเดตล่าสุด 2025-08-31 UTC"],[[["\u003cp\u003eGoogle Maps Platform (GMP) maps can be customized through various methods, primarily using a map ID.\u003c/p\u003e\n"],["\u003cp\u003eMap IDs are unique identifiers associated with a project and a specific platform (JavaScript, Android, iOS, or Static maps) to enable features and manage map styles.\u003c/p\u003e\n"],["\u003cp\u003eCloud-based maps styling allows for the use of map IDs and map styles to customize road maps, with the benefit of updating styles in the Cloud console without code changes.\u003c/p\u003e\n"],["\u003cp\u003eManual map customization using JSON styling is available for styling the normal map type but does not require a map ID and necessitates code updates for any style changes.\u003c/p\u003e\n"],["\u003cp\u003eCloud-based maps styling and manual map styling using JSON cannot be combined within the same application.\u003c/p\u003e\n"]]],["Google Maps Platform (GMP) maps can be customized using map IDs or JSON styling. Map IDs, unique identifiers for a single map instance on a specific platform (Android, iOS, JavaScript, or Web Service), enable cloud-based styling and feature management via the Cloud console. JSON styling, which doesn't require a map ID, allows manual map styling but necessitates code updates for any changes. Cloud-based and manual styling cannot be combined. Select a platform to begin, or check out map ID overview and cloud-based map styling.\n"],null,["Select platform: [Android](/maps/documentation/android-sdk/map-ids/customize-maps-overview \"View this page for the Android platform docs.\") [iOS](/maps/documentation/ios-sdk/map-ids/customize-maps-overview \"View this page for the iOS platform docs.\") [JavaScript](/maps/documentation/javascript/map-ids/customize-maps-overview \"View this page for the JavaScript platform docs.\") [Web Service](/maps/documentation/maps-static/map-ids/customize-maps-overview \"View this page for the Web Service platform docs.\")\n\n\u003cbr /\u003e\n\nYou have several options for customizing Google Maps Platform (GMP) maps. Most of\nthese methods require you to use a map ID to access several different map\ncustomization features. You can also manually customize GMP\nmaps using JSON styling,\n\nCustomize maps with map IDs\n\nA map ID is a unique identifier that represents a single instance of a Google\nMap. Map IDs are restricted to a single platform--JavaScript, Android, iOS, or\nStatic maps. You associate map IDs with a project, and can use map IDs to enable\nfeatures or manage or style maps on your websites and in your applications. For\ndetails, see [Map ID overview](/maps/documentation/ios-sdk/map-ids/mapid-over).\n\nCustomize with map IDs and Cloud-based maps styling\n\nWith cloud-based maps styling, you use map IDs and map styles to create a\ncustomized road map experience for your users. You can then update the style as\nneeded in the Cloud console, without having to update your apps' code. For\ndetails, see [Cloud-based maps styling](../cloud-customization/index).\n\nCustomize maps manually with JSON styling\n\nManually customizing maps lets you style the normal map type, and does not\nrequire a map ID. Any updates to the style require a code update. You cannot\ncombine manual map styling and cloud-based maps styling in the same app.\n\nTo customize a map manually using JSON styling, see\n\n[Add a styled map](../styling)."]]