init project
This commit is contained in:
30
ios/Classes/Category/MAPolylineRenderer+Flutter.m
Normal file
30
ios/Classes/Category/MAPolylineRenderer+Flutter.m
Normal file
@ -0,0 +1,30 @@
|
||||
//
|
||||
// MAPolylineRenderer+Flutter.m
|
||||
// amap_map
|
||||
//
|
||||
// Created by lly on 2020/11/7.
|
||||
//
|
||||
|
||||
#import "MAPolylineRenderer+Flutter.h"
|
||||
#import "AMapPolyline.h"
|
||||
|
||||
@implementation MAPolylineRenderer (Flutter)
|
||||
|
||||
- (void)updateRenderWithPolyline:(AMapPolyline *)polyline {
|
||||
self.lineWidth = polyline.width;
|
||||
self.strokeColor = polyline.color;
|
||||
if (polyline.visible) {//可见时,才设置透明度
|
||||
self.alpha = polyline.alpha;
|
||||
} else {
|
||||
self.alpha = 0;
|
||||
}
|
||||
if (polyline.strokeImage) {
|
||||
self.strokeImage = polyline.strokeImage;
|
||||
}
|
||||
self.lineDashType = polyline.dashLineType;
|
||||
self.lineJoinType = polyline.joinType;
|
||||
self.lineCapType = polyline.capType;
|
||||
self.userInteractionEnabled = YES;//默认可点击
|
||||
}
|
||||
|
||||
@end
|
Reference in New Issue
Block a user