【发布时间】:2020-04-07 19:09:20
【问题描述】:
在我的项目中,我有一个 CLLocationCoordinate2D 数组,我需要找到它的中心点。在Android google maps sdk中,有一个计算中心的漂亮函数...
LatLngBounds.Builder builder = new LatLngBounds.Builder();
builder.include(listOfBounds);
LatLngBounds bounds = builder.build();
centerLatLng = bounds.getCenter();
是否有与此等效的函数可以计算ios sdk中包含的中心点,还是我必须自己编写函数?
【问题讨论】:
标签: ios swift google-maps