Skip to content

Commit

Permalink
chore: guard configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
hansemannn committed Jan 30, 2024
1 parent 216e7cf commit 41b383f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions ios/Classes/TiMapView.m
Original file line number Diff line number Diff line change
Expand Up @@ -987,8 +987,10 @@ - (void)locationManager:(CLLocationManager *)manager didChangeAuthorizationStatu

- (MKOverlayRenderer *)mapView:(MKMapView *)mapView rendererForOverlay:(id<MKOverlay>)overlay
{
if ([overlay isKindOfClass:[TiCutoutCircle class]]) {
NSDictionary *circleConfiguration = [[self proxy] valueForKey:@"cutoutCircle"];
NSDictionary *circleConfiguration = [[self proxy] valueForKey:@"cutoutCircle"];

// Configure cutout circles in a special way, as they do not own an own proxy
if ([overlay isKindOfClass:[TiCutoutCircle class]] && circleConfiguration != nil) {
UIColor *overlayColor = [TiUtils colorValue:@"overlayColor" properties:circleConfiguration def:[TiColor colorNamed:@"black"]].color;
UIColor *strokeColor = [TiUtils colorValue:@"strokeColor" properties:circleConfiguration def:[TiColor colorNamed:@"black"]].color;
CGFloat lineWidth = [TiUtils floatValue:@"strokeWidth" properties:circleConfiguration def:1.0];
Expand Down

0 comments on commit 41b383f

Please sign in to comment.