Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
这似乎是可能的,因为 MKUserLocation 注释放置在用户当前的高度。然而,MKAnnotation 的协议只包含一个坐标。有没有办法调整它的高度?谢谢!
这是方法: -
[mapView showAnnotations:yourAnnotationArray animated:YES];
您可以从存储在地图视图中的数组中提取:
yourAnnotationArray = mapView.annotations;
并快速调整高度:-
mapView.camera.altitude *= 1.4;
尝试将相机高度乘以 1 的一小部分,例如mapView.camera.altitude *= .85;更近的视口