Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Circle annotations #1882

Closed
EasyAsABC123 opened this issue Jul 12, 2015 · 4 comments
Closed

Circle annotations #1882

EasyAsABC123 opened this issue Jul 12, 2015 · 4 comments
Labels
feature iOS Mapbox Maps SDK for iOS

Comments

@EasyAsABC123
Copy link

RMCircle doesn't appear to be defined in swift, how can I draw a simple circle?

var circle = RMCircle(position: position, radius: 3000)

instead I only have MLGShape and MLGPolygon but no MLGCircle

http://stackoverflow.com/questions/31364438/create-a-circle-in-mapbox-gl-for-ios

@1ec5 1ec5 added feature iOS Mapbox Maps SDK for iOS labels Jul 12, 2015
@1ec5
Copy link
Contributor

1ec5 commented Jul 12, 2015

Mapbox GL for iOS doesn’t have an equivalent to RMCircle or RMCircleAnnotation yet. See also #1726, which tracks adding a great circle annotation type. For now, the workaround is to draw a many-sided polygon using MGLPolygon.

@1ec5 1ec5 changed the title Create Circle in Swift Circle annotations Jul 12, 2015
@bmeine
Copy link

bmeine commented Jul 20, 2015

I created a many sided polygon, but many of the points are removed if they're too close together unless at maximum zoom then the circle's borders appear smooth. The circle loses it's smooth roundness at lower zoom levels and at a low enough zoom will become a box/diamond.

Is there any way to force it to keep more points?

Thanks

@incanus
Copy link
Contributor

incanus commented Jul 21, 2015

Is there any way to force it to keep more points?

Not right now — the proper fix here is in #1740, which is part of the v8 style spec. /cc @brunoabinader

@incanus incanus closed this as completed Jul 21, 2015
@1ec5
Copy link
Contributor

1ec5 commented Aug 24, 2015

The Cocoa side of this is being tracked in #2167.

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

No branches or pull requests

4 participants