Open DangeloID opened 9 years ago
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?
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;
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?