25 lines
795 B
Objective-C
Executable File
25 lines
795 B
Objective-C
Executable File
//
|
||
// SelectableOverlay.h
|
||
// officialDemo2D
|
||
//
|
||
// Created by yi chen on 14-5-8.
|
||
// Copyright (c) 2014年 AutoNavi. All rights reserved.
|
||
//
|
||
|
||
#import <Foundation/Foundation.h>
|
||
#import <AMapNaviKit/MAMapKit.h>
|
||
|
||
/// 继承 MAPolyline,自身就是 Polyline,renderer 用 self 初始化不会产生 overlay 不匹配警告
|
||
@interface SelectableOverlay : MAPolyline
|
||
|
||
@property (nonatomic, assign) NSInteger routeID;
|
||
|
||
@property (nonatomic, assign, getter = isSelected) BOOL selected;
|
||
@property (nonatomic, strong) UIColor *selectedColor;
|
||
@property (nonatomic, strong) UIColor *regularColor;
|
||
|
||
/// 用坐标数组和数量初始化(对应原来的 MAPolyline polylineWithCoordinates:count:)
|
||
+ (instancetype)overlayWithCoordinates:(CLLocationCoordinate2D *)coords count:(NSUInteger)count;
|
||
|
||
@end
|