init project
This commit is contained in:
26
ios/Classes/Category/MAPolygonRenderer+Flutter.m
Normal file
26
ios/Classes/Category/MAPolygonRenderer+Flutter.m
Normal file
@ -0,0 +1,26 @@
|
||||
//
|
||||
// MAPolygonRenderer+Flutter.m
|
||||
// amap_map
|
||||
//
|
||||
// Created by lly on 2020/11/12.
|
||||
//
|
||||
|
||||
#import "MAPolygonRenderer+Flutter.h"
|
||||
#import "AMapPolygon.h"
|
||||
|
||||
@implementation MAPolygonRenderer (Flutter)
|
||||
|
||||
- (void)updateRenderWithPolygon:(AMapPolygon *)polygon {
|
||||
self.lineWidth = polygon.strokeWidth;
|
||||
self.strokeColor = polygon.strokeColor;
|
||||
self.fillColor = polygon.fillColor;
|
||||
self.lineJoinType = polygon.joinType;
|
||||
if (polygon.visible) {
|
||||
self.alpha = 1.0;
|
||||
} else {
|
||||
self.alpha = 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@end
|
Reference in New Issue
Block a user