- (BMKAnnotationView*)mapView:(BMKMapView*)mapView viewForAnnotation:(id)annotation{\
if(annotation ==_startPoint) {如果大头针是你想改变那个
初始化并返回一个annotation view
@param annotation关联的annotation对象
@param reuseIdentifier如果要重用view,传入一个字符串,否则设为nil,建议重用view
@return初始化成功则返回annotation view,否则返回nil
BMKPinAnnotationView *annotationView = [[BMKPinAnnotationView alloc]initWithAnnotation:annotation reuseIdentifier:@"myAnnotation"];
annotationView.image= [UIImage imageNamed:@"hha"];设置大头针气泡图片
从天上掉下效果annotationView.animatesDrop = YES;
annotationView.draggable=NO;是否可拖拽
returnannotationView;
}
}