Enum Color
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
顏色
列舉代表地圖圖片中可用的具名顏色。
如要呼叫列舉,您可以呼叫其父項類別、名稱和屬性。例如
Maps.Color.BLACK
。
屬性
屬性 | 類型 | 說明 |
BLACK | Enum | |
BROWN | Enum | |
GREEN | Enum | |
PURPLE | Enum | |
YELLOW | Enum | |
BLUE | Enum | |
GRAY | Enum | |
ORANGE | Enum | |
RED | Enum | |
WHITE | Enum | |
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-07-26 (世界標準時間)。
[null,null,["上次更新時間:2025-07-26 (世界標準時間)。"],[[["\u003cp\u003e\u003ccode\u003eMaps.Color\u003c/code\u003e is an enum representing named colors for use in map images.\u003c/p\u003e\n"],["\u003cp\u003eAvailable color options include \u003ccode\u003eBLACK\u003c/code\u003e, \u003ccode\u003eBROWN\u003c/code\u003e, \u003ccode\u003eGREEN\u003c/code\u003e, \u003ccode\u003ePURPLE\u003c/code\u003e, \u003ccode\u003eYELLOW\u003c/code\u003e, \u003ccode\u003eBLUE\u003c/code\u003e, \u003ccode\u003eGRAY\u003c/code\u003e, \u003ccode\u003eORANGE\u003c/code\u003e, \u003ccode\u003eRED\u003c/code\u003e, and \u003ccode\u003eWHITE\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eTo use a color, call it using the format \u003ccode\u003eMaps.Color.[ColorName]\u003c/code\u003e, for example, \u003ccode\u003eMaps.Color.BLACK\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# Enum Color\n\nColor\n\nAn enum representing the named colors available to use in map images.\n\nTo call an enum, you call its parent class, name, and property. For example, `\nMaps.Color.BLACK`. \n\n### Properties\n\n| Property | Type | Description |\n|----------|--------|-------------|\n| `BLACK` | `Enum` | |\n| `BROWN` | `Enum` | |\n| `GREEN` | `Enum` | |\n| `PURPLE` | `Enum` | |\n| `YELLOW` | `Enum` | |\n| `BLUE` | `Enum` | |\n| `GRAY` | `Enum` | |\n| `ORANGE` | `Enum` | |\n| `RED` | `Enum` | |\n| `WHITE` | `Enum` | |"]]