amap_map/ios/Classes/Category/MAPolygonRenderer+Flutter.m

27 lines
528 B
Mathematica
Raw Normal View History

2023-12-22 21:23:24 +08:00
//
// 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