Enum Type
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
类型
表示要渲染的地图类型的枚举。
若要调用枚举,您可以调用其父类、名称和属性。例如
Maps.Type.ROADMAP
。
另请参阅
属性
媒体资源 | 类型 | 说明 |
ROADMAP | Enum | 标准路线图,如 Google 地图网站通常所示。 |
SATELLITE | Enum | 卫星地图。 |
TERRAIN | Enum | 一张显示地形和植被的自然地形地图。 |
HYBRID | Enum | 卫星图和路线图的混合地图,在卫星地图上显示主要街道和地名的透明图层。 |
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-26。
[null,null,["最后更新时间 (UTC):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. |"]]