public enum RestrictBoundsFitMode extends java.lang.Enum<RestrictBoundsFitMode>
TencentMap.setRestrictBounds(LatLngBounds, RestrictBoundsFitMode) 允许设置的 RestrictBoundsFitMode| Enum Constant and Description |
|---|
FIT_HEIGHT
此模式会以 bounds 高度为参考值限制地图的控制区域,在最小限制级别时 bounds 的横向区域可能显示不完整,
可调用
TencentMap.setMinZoomLevel(int) 修改最小限制级别以展示完整的区域 |
FIT_WIDTH
此模式会以 bounds 宽度为参考值限制地图的控制区域,在最小限制级别时 bounds 的纵向区域可能显示不完整,
可调用
TencentMap.setMinZoomLevel(int) 修改最小限制级别以展示完整的区域 |
| Modifier and Type | Method and Description |
|---|---|
static RestrictBoundsFitMode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static RestrictBoundsFitMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RestrictBoundsFitMode FIT_WIDTH
TencentMap.setMinZoomLevel(int) 修改最小限制级别以展示完整的区域public static final RestrictBoundsFitMode FIT_HEIGHT
TencentMap.setMinZoomLevel(int) 修改最小限制级别以展示完整的区域public static RestrictBoundsFitMode[] values()
for (RestrictBoundsFitMode c : RestrictBoundsFitMode.values()) System.out.println(c);
public static RestrictBoundsFitMode valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is null