-(void)showAnnotationPoints:(NSArray *)aArray{
if(!aArray||aArray.count==0){
return;
}
BMKMapRect zoomRect = BMKMapRectNull;
for (BMKPointAnnotation *an in aArray) {
BMKMapPoint annotationPoint = BMKMapPointForCoordinate(an.coordinate);
BMKMapRect pointRect = BMKMapRectMake(annotationPoint.x, annotationPoint.y, 0, 0);
if (BMKMapRectIsNull(zoomRect)) {
zoomRect = pointRect;
} else {
zoomRect = BMKMapRectUnion(zoomRect, pointRect);
}
}
// 设置padding [_mapView setVisibleMapRect:zoomRect edgePadding:padding animated:YES];
[_mapView setVisibleMapRect:zoomRect];
}
}