Enum Type
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
類型
列舉代表要算繪的地圖類型。
如要呼叫列舉,您可以呼叫其父項類別、名稱和屬性。例如
Maps.Type.ROADMAP
。
另請參閱
屬性
屬性 | 類型 | 說明 |
ROADMAP | Enum | 標準藍圖,通常顯示在 Google 地圖網站上。 |
SATELLITE | Enum | 衛星地圖。 |
TERRAIN | Enum | 實際地形圖,顯示地形和植被。 |
HYBRID | Enum | 衛星地圖和道路圖的混合地圖,在衛星地圖上顯示一個透明圖層,顯示主要街道和地點名稱。 |
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-07-26 (世界標準時間)。
[null,null,["上次更新時間:2025-07-26 (世界標準時間)。"],[[["\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. |"]]