ปรับแต่งแผนที่
คุณมีตัวเลือกหลายอย่างในการปรับแต่งแผนที่ 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-07-16 UTC
[null,null,["อัปเดตล่าสุด 2025-07-16 UTC"],[[["Google Maps Platform (GMP) maps can be customized through various methods, primarily using a map ID."],["Map 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."],["Cloud-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."],["Manual 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."],["Cloud-based maps styling and manual map styling using JSON cannot be combined within the same application."]]],["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"]]