首页 > 百度地图上添加的图片没有显示,百度地图对添加的图片有要求吗?

百度地图上添加的图片没有显示,百度地图对添加的图片有要求吗?

我在给百度地图添加图片时,大小800k左右的图片能显示,但是稍微大了就显示不了。在网上找了很长时间,也没有找到有效的解决方法。

相关代码 BMKCoordinateBounds bound;

bound.southWest = coords[0];
bound.northEast = coords[1];

BMKGroundOverlay * ground = [BMKGroundOverlay groundOverlayWithBounds:bound icon:[UIImage imageNamed:@"F1F0CCACF4D156343C54652813477714.jpg"]];

代理方法
-(BMKOverlayView *)mapView:(BMKMapView *)mapView viewForOverlay:(id<BMKOverlay>)overlay

{

if ([overlay isKindOfClass:[BMKGroundOverlay class]]) {
    BMKGroundOverlayView *groundView = [[BMKGroundOverlayView alloc]initWithOverlay:overlay];
    return groundView;
}return nil;
}
【热门文章】
【热门文章】