美文网首页
设置CLLocationCoordinate2Dcoor 个数不

设置CLLocationCoordinate2Dcoor 个数不

作者: 布谷布谷7788 | 来源:发表于2019-06-21 11:54 被阅读0次

    NSIntegercountIndex = array.count;

    CLLocationCoordinate2Dcoor[countIndex];

    for(NSIntegeri =0;i

        NSDictionary*dict = array[i];

        coor[i].latitude= [dict[@"latitude"]floatValue];

        coor[i].longitude= [dict[@"longitude"]floatValue];

        mapView.centerCoordinate= coor[i];

    }

    BMKPolyline*polyline = [BMKPolylinepolylineWithCoordinates:coorcount:countIndex];

    [mapViewaddOverlay:polyline];

//    free(coor);

相关文章

网友评论

      本文标题:设置CLLocationCoordinate2Dcoor 个数不

      本文链接:https://www.haomeiwen.com/subject/syhyqctx.html