Enum Format
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
格式
列舉代表地圖圖片的格式。
如要呼叫列舉,您可以呼叫其父項類別、名稱和屬性。例如
Maps.Format.PNG
。
另請參閱
屬性
屬性 | 類型 | 說明 |
PNG | Enum | 8 位元 PNG 格式。 |
PNG8 | Enum | 8 位元 PNG 格式。 |
PNG32 | Enum | 32 位元 PNG 格式。 |
GIF | Enum | GIF 格式。 |
JPG | Enum | JPEG 格式。 |
JPG_BASELINE | Enum | 非漸進式 JPEG 格式。 |
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-07-26 (世界標準時間)。
[null,null,["上次更新時間:2025-07-26 (世界標準時間)。"],[[["\u003cp\u003e\u003ccode\u003eMaps.Format\u003c/code\u003e is an enum used to specify the format of a map image.\u003c/p\u003e\n"],["\u003cp\u003eAvailable formats include PNG (8-bit and 32-bit), GIF, and JPEG (including a non-progressive option).\u003c/p\u003e\n"],["\u003cp\u003eThe enum is called using the syntax \u003ccode\u003eMaps.Format.<format_property>\u003c/code\u003e, such as \u003ccode\u003eMaps.Format.PNG\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eMore details about image formats can be found in the Google Static Maps API documentation.\u003c/p\u003e\n"]]],["The `Maps.Format` enum defines the image format for maps, accessed via its parent class, name, and property (e.g., `Maps.Format.PNG`). Available formats include `PNG`, `PNG8`, `PNG32` (all PNG variations), `GIF`, `JPG`, and `JPG_BASELINE` (non-progressive JPEG). Each property represents a different image encoding, with the `Type` specified as `Enum` and providing information on whether the image is 8 or 32 bit.\n"],null,["# Enum Format\n\nFormat\n\nAn enum representing the format of the map image.\n\nTo call an enum, you call its parent class, name, and property. For example, `\nMaps.Format.PNG`.\n\n#### See also\n\n- [Google Static Maps API](/maps/documentation/staticmaps#ImageFormats) \n\n### Properties\n\n| Property | Type | Description |\n|----------------|--------|------------------------------|\n| `PNG` | `Enum` | 8-bit PNG format. |\n| `PNG8` | `Enum` | 8-bit PNG format. |\n| `PNG32` | `Enum` | 32-bit PNG format. |\n| `GIF` | `Enum` | GIF format. |\n| `JPG` | `Enum` | JPEG format. |\n| `JPG_BASELINE` | `Enum` | Non-progressive JPEG format. |"]]