//
//  AMapPathPolyline.m
//  react-native-anavi
//
//  Created by xiuyanger on 2020/9/15.
//

#import "AMapPathPolyline.h"

@implementation AMapPathPolyline

- (id)initWithPolyline:(MAPolyline *)polyline
{
    self = [super init];
    if (self)
    {
        self.polyline = polyline;
        self.type = MANaviAnnotationTypeDrive;
    }
    return self;
}

- (CLLocationCoordinate2D) coordinate
{
    return [_polyline coordinate];
}

- (MAMapRect) boundingMapRect
{
    return [_polyline boundingMapRect];
}

@end
