//
//  SelectableOverlay.m
//  officialDemo2D
//
//  Created by yi chen on 14-5-8.
//  Copyright (c) 2014年 AutoNavi. All rights reserved.
//

#import "SelectableOverlay.h"

@implementation SelectableOverlay

+ (instancetype)overlayWithCoordinates:(CLLocationCoordinate2D *)coords count:(NSUInteger)count
{
    // MAPolyline 的指定工厂方法，返回 SelectableOverlay 实例
    SelectableOverlay *overlay = (SelectableOverlay *)[super polylineWithCoordinates:coords count:count];
    overlay.selected      = NO;
    overlay.selectedColor = [UIColor colorWithRed:0.05 green:0.39 blue:0.9  alpha:0.8];
    overlay.regularColor  = [UIColor colorWithRed:0.5  green:0.6  blue:0.9  alpha:0.8];
    return overlay;
}

@end
