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

RMShape layer size problem #654

@DangeloID

Description

@DangeloID

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions