Enum MarkerSize
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
标记大小
表示添加到地图中的标记的大小的枚举。
如需调用枚举,您可以调用其父类、名称和属性。例如
Maps.MarkerSize.TINY
。
另请参阅
属性
属性 | 类型 | 说明 |
TINY | Enum | 市场规模较小(最小)。此大小的标记上不会显示标签。 |
MID | Enum | 中等大小的标记(可用的最大标记)。 |
SMALL | Enum | 尺寸较小的标记。此大小的标记上不会显示标签。 |
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-26。
[null,null,["最后更新时间 (UTC):2025-07-26。"],[[["\u003cp\u003e\u003ccode\u003eMarkerSize\u003c/code\u003e is an enum used to define the size of markers on a map.\u003c/p\u003e\n"],["\u003cp\u003eIt offers three options: \u003ccode\u003eTINY\u003c/code\u003e, \u003ccode\u003eSMALL\u003c/code\u003e (both without visible labels), and \u003ccode\u003eMID\u003c/code\u003e (largest size).\u003c/p\u003e\n"],["\u003cp\u003eMarker sizes are implemented by calling the parent class, name, and property, such as \u003ccode\u003eMaps.MarkerSize.TINY\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# Enum MarkerSize\n\nMarkerSize\n\nAn enum representing the size of a marker added to a map.\n\nTo call an enum, you call its parent class, name, and property. For example, `\nMaps.MarkerSize.TINY`.\n\n#### See also\n\n- [Google Static Maps API](/maps/documentation/staticmaps#MarkerStyles) \n\n### Properties\n\n| Property | Type | Description |\n|----------|--------|----------------------------------------------------------------------------------------------|\n| `TINY` | `Enum` | Tiny sized markets (smallest available). Labels will not be visible on markers of this size. |\n| `MID` | `Enum` | Medium sized markers (largest available). |\n| `SMALL` | `Enum` | Small sized markers. Labels will not be visible on markers of this size. |"]]