Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Circle is not displaying correctly #6

Closed
UHemarajU opened this issue Oct 7, 2016 · 3 comments
Closed

Circle is not displaying correctly #6

UHemarajU opened this issue Oct 7, 2016 · 3 comments

Comments

@UHemarajU
Copy link

Hi Orb Japan,

Thanks for the example. I working fine in iOS 9. But when is run this app in iOS 10 some part of the the circle is cutting. Please help me to resolve this.

Thnak you.

@MDBox
Copy link
Contributor

MDBox commented Oct 7, 2016

Hello,

It has been awhile since I've looked at this but I think I found a solution for IOS 10. When you make the MKCircle object make sure you set the radius to the maximum allowed value for the circle.

In the example we set a maximum value to 2.0 KM. So after I updated this line of code it worked again in IOS 10.

circle = [MKCircle circleWithCenterCoordinate:droppedAt radius:2000.0];

I think the problem was IOS 10 changed how the bounding box around the circle is set. It wasn't making the drawing area large enough so the circle was being clipped to this smaller region. I could be wrong but that is what I'm thinking. I'll make a pull request to fix the example and ask the guys at 'Orb Japan' to update the repo.

#7

@MDBox
Copy link
Contributor

MDBox commented Oct 13, 2016

@UHemarajU If you have a chance can you try the updated repo?

Thanks

Michael

@UHemarajU
Copy link
Author

UHemarajU commented Oct 13, 2016

Hi Michael,

I tried that one and now the circle is displaying correctly. Thanks for the update.

@MDBox MDBox closed this as completed Oct 17, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants