include
public LatLngBounds.Builder include(LatLng point)
区域包含传入的坐标。区域将进行小范围延伸包含传入的坐标。
更准确来说,它会考虑向东或向西方向扩展(哪一种方法可能环绕地图),并选择最小扩展的方法。
如果两种方向得到的矩形区域大小相同,则会选择向东方向扩展。
例如:添加坐标(0,-179)和(1,179)将创建一个横穿180经线的区域。
The area includes the provided coordinates. The area will extend slightly to include the provided coordinates.
More precisely, it will consider extending eastward or westward (which method may wrap around the map) and choose the method that results in the minimal extension.
If both directions result in the same rectangular area size, it will prioritize extending eastward.
For example: adding coordinates (0, -179) and (1, 179) will create an area that crosses the 180th meridian.
- 参数:
point - 将坐标点包含在区域中。
Include the coordinate point in the area.
- 返回:
- 加入新坐标的builder对象。
Builder object with the new coordinates added.
- 从以下版本开始:
- 2.0.1