0

我在我的应用程序中使用 mapkit。我想在 mapview 中显示蓝色 blob。我已设置 [mapview setShowUserLocation:YES]; 但它没有显示蓝色斑点。它的坐标是-180.0000,-180.0000?这是怎么回事?mapkit 中是否有错误。我没有使用位置管理器来显示蓝点。我知道将 showuserlocation 设置为 yes 会自动显示蓝点。有人知道为什么蓝色 blob 有负坐标以及如何解决这个问题吗?

4

2 回答 2

1

蓝色 blob 不是默认的,它专门用于 Google 地图应用程序。如果您希望您的注释在地图上显示某些内容,您需要为其提供一个 MKAnnotationView。MapKit 免费提供 MKPinAnnotationView,您可以在其中选择红色、绿色或紫色引脚。如果您希望显示其他任何内容,则必须提供您自己的自定义视图和您自己的自定义艺术。

于 2009-11-06T15:36:47.770 回答
1
if (annotation == aMapView.userLocation) 
{
    return nil; // this might be the moment the location was first detected
}
于 2010-10-22T21:10:00.963 回答