Enum Format
Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
Format
Enum yang mewakili format gambar peta.
Untuk memanggil enum, panggil class, nama, dan properti induknya. Misalnya,
Maps.Format.PNG
.
Lihat juga
Properti
Properti | Jenis | Deskripsi |
PNG | Enum | Format PNG 8-bit. |
PNG8 | Enum | Format PNG 8-bit. |
PNG32 | Enum | Format PNG 32-bit. |
GIF | Enum | GIF. |
JPG | Enum | JPEG. |
JPG_BASELINE | Enum | Format JPEG non-progresif. |
Kecuali dinyatakan lain, konten di halaman ini dilisensikan berdasarkan Lisensi Creative Commons Attribution 4.0, sedangkan contoh kode dilisensikan berdasarkan Lisensi Apache 2.0. Untuk mengetahui informasi selengkapnya, lihat Kebijakan Situs Google Developers. Java adalah merek dagang terdaftar dari Oracle dan/atau afiliasinya.
Terakhir diperbarui pada 2025-07-26 UTC.
[null,null,["Terakhir diperbarui pada 2025-07-26 UTC."],[[["\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. |"]]