gpt4 book ai didi

java - 新的 LatLngBounds 方法

转载 作者:行者123 更新时间:2023-11-29 02:39:29 26 4
gpt4 key购买 nike

在方法中

CameraUpdateFactory.newLatLngBounds(LatLngBounds bounds,
int width, int height, int padding);

边界和宽度/高度整数有什么区别?

官方文档是这么说的

Returns a CameraUpdate that transforms the camera such that the specified latitude/longitude bounds are centered on screen within a bounding box of specified dimensions at the greatest possible zoom level.

但我不清楚。你能帮我简化一下吗?谢谢

最佳答案

LatLngBounds 对象表示地球表面的边界框。 widthheight 参数表示手机屏幕上的边界框。此方法采用 LatLngBounds 并缩放相机,使整个边界适合宽度 width 和高度 height 的矩形,并将 map 居中那个矩形。

关于java - 新的 LatLngBounds 方法,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45238688/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com