Enum Type
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
ประเภท
enum ที่เป็นตัวแทนประเภทแผนที่ที่จะแสดงผล
หากต้องการเรียก enum คุณจะต้องเรียกคลาส ชื่อ และพร็อพเพอร์ตี้ระดับบนสุด เช่น
Maps.Type.ROADMAP
ดูเพิ่มเติม
พร็อพเพอร์ตี้
พร็อพเพอร์ตี้ | Type | คำอธิบาย |
ROADMAP | Enum | แผนงานมาตรฐานตามที่แสดงในเว็บไซต์ Google แผนที่ตามปกติ |
SATELLITE | Enum | แผนที่ดาวเทียม |
TERRAIN | Enum | แผนที่ภูมิประเทศที่แสดงภูมิประเทศและพืชพรรณ |
HYBRID | Enum | การผสมผสานระหว่างแผนที่ดาวเทียมและแผนที่กลยุทธ์ที่แสดงเลเยอร์ถนนหลักแบบโปร่งใสและชื่อสถานที่บนแผนที่ดาวเทียม |
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-26 UTC
[null,null,["อัปเดตล่าสุด 2025-07-26 UTC"],[[["\u003cp\u003e\u003ccode\u003eMaps.Type\u003c/code\u003e is an enum used to specify the type of map to be displayed, such as roadmap, satellite, terrain, or hybrid.\u003c/p\u003e\n"],["\u003cp\u003eYou can call a specific map type using the syntax \u003ccode\u003eMaps.Type.[property]\u003c/code\u003e, for example, \u003ccode\u003eMaps.Type.ROADMAP\u003c/code\u003e for a standard roadmap view.\u003c/p\u003e\n"],["\u003cp\u003eThis enum offers four map type properties: \u003ccode\u003eROADMAP\u003c/code\u003e, \u003ccode\u003eSATELLITE\u003c/code\u003e, \u003ccode\u003eTERRAIN\u003c/code\u003e, and \u003ccode\u003eHYBRID\u003c/code\u003e, each representing a different map style.\u003c/p\u003e\n"]]],[],null,["# Enum Type\n\nType\n\nAn enum representing the type of map to render.\n\nTo call an enum, you call its parent class, name, and property. For example, `\nMaps.Type.ROADMAP`.\n\n#### See also\n\n- [Google Static Maps API](/maps/documentation/staticmaps#MapTypes) \n\n### Properties\n\n| Property | Type | Description |\n|-------------|--------|--------------------------------------------------------------------------------------------------------------------------------|\n| `ROADMAP` | `Enum` | A standard roadmap, as is normally shown on the Google Maps website. |\n| `SATELLITE` | `Enum` | A satellite map. |\n| `TERRAIN` | `Enum` | A physical relief map, showing terrain and vegetation. |\n| `HYBRID` | `Enum` | A hybrid of the satellite and roadmap maps, showing a transparent layer of major streets and place names on the satellite map. |"]]