Skip to content
This repository has been archived by the owner on May 9, 2018. It is now read-only.

RMShape layer size problem #654

Open
DangeloID opened this issue Jul 13, 2015 · 0 comments
Open

RMShape layer size problem #654

DangeloID opened this issue Jul 13, 2015 · 0 comments

Comments

@DangeloID
Copy link

NSArray *locations = [NSArray arrayWithObjects:
[[CLLocation alloc] initWithLatitude:34.01035458
longitude: -118.31129550],
[[CLLocation alloc] initWithLatitude:34.0107814
longitude:-118.31129550],
[[CLLocation alloc] initWithLatitude:34.0107814
longitude:-118.309063],
[[CLLocation alloc] initWithLatitude:34.01035458
longitude: -118.309063],
[[CLLocation alloc] initWithLatitude:34.01035458
longitude:-118.31129550],
nil];

RMPolygonAnnotation *annotation = [[RMPolygonAnnotation alloc] initWithMapView:self.mapView
points:locations];
annotation.userInfo = locations;
annotation.lineColor = [UIColor redColor];
annotation.fillColor = [UIColor blueColor];
annotation.layer.opacity = 0.5;

[self.mapView addAnnotation:annotation];

Hi all, I try to add a small polygon into the map, but the logs are constantly error occurs:

[<RMShape: 0x7fa7b2d92560> display]: Ignoring bogus layer size (12439.375302, 43250.187739), contentsScale 2.000000, backing store size (24878.750604, 86500.375478)

What could it be?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant