Questions tagged [mkcircle]

30 questions
4
votes
0 answers

MapKit: rendering MKCircle with unwelcome artifacts

I'm using MKCircle for displaying the user location on MKMapView. This is done by a few lines of code: MKCircle creation: self.mapCircle = MKCircle(center: pinLocation, radius: 50) self.mapView.add(self.mapCircle!) Rendering, using…
4
votes
1 answer

How to calculate the zoom level of MKMapView to fit MKCircle?

I want to show mkcircle at button click event.I have to calculated the zoom level of MKMapView using circle radius to make circle noticeable.Let the radius be anything small or big but mkcircle on mkmapview should be big enough as given in the…
sarita
  • 236
  • 1
  • 11
3
votes
0 answers

How to find intersection point coordinate from two MKCircle in map-kit?

I have two cordinates and radius values, using that i am drawing two circle on mapview. Now i have to find the two intersection coordinates, where two circle cross each other. same image shown below: How can I do that?
Satish Mavani
  • 4,897
  • 2
  • 20
  • 30
3
votes
2 answers

How to resize MKCircle Smoothly

I am trying to implement an MKCircle that either increases or decreases in radius as a slider is changed. The issue I have is that when the circle is redrawn it isn't smooth at all. I have read a few other posts and they seem to indicate that you…
tyler
  • 31
  • 3
2
votes
1 answer

Overlay around annotation

Hi I'm trying to create an overlay around my annotations, like apples reminders app, I have already created an MKCircle object which I think I should use to show the overlay but how do I convert my MKCircle object into an MKOVerlay object? maybe…
CFRJ
  • 157
  • 1
  • 12
2
votes
1 answer

How to zoom in and zoom out MKCircle in MKMapView on the same button click in ios?

I am creating a MKMapView app where I want to provide a user with a facility of zooming MKCircle deep inside to see annotations and at the same moment if user wants to go back to the previous zoom level to see the circle,he just need to press the…
sarita
  • 236
  • 1
  • 11
2
votes
1 answer

MapKit MKCircle Change Radius on Zoom Level

I'm trying to create an MKCircle overlay on a map, however I would like the size of the circle on the screen to remain constant as the user zooms. So as the user zooms in, the radius gets smaller and as the user zooms out, the radius gets…
Chris Schlitt
  • 561
  • 1
  • 4
  • 20
2
votes
2 answers

Get all points coordinate on a MKCircle

I am drawing a MKCircle on MKMapView, I need to get all points in the Circle border (not inside it) to send the points coordinates to server and get the information that related to the region which is inside the circle. Also as I have the center…
Morteza Soleimani
  • 2,652
  • 3
  • 25
  • 44
2
votes
1 answer

How to add circular region onto MKMapView

I am trying to add a circular region on my MKMapView like the picture below for my current location. I can pin the map with annotations but don't know how to get it to show a circular region like this with a radius and have it shaded.
Stephen Bennett
  • 431
  • 6
  • 17
1
vote
1 answer

Simple MKCircle implementation at user location

A real newbie to IOS and SWIFT. Trying to overlay a circle over the current location. Following code generates the map view, puts a blue dot at user location but does NOT draw the overlay circle.. please help. // // ViewController.swift // …
1
vote
0 answers

Swift – setup more than one fillColor in MKCircle

I'm trying to have my MKCircle fillColor change when the markerType is different. For example, if the markerType is "airport", then the fill should be red, and if it is "Sea Plane Base" then the fill should be black. // MARK: Radius overlay func…
wwarren07
  • 17
  • 9
1
vote
1 answer

Adding multiple circles to MapKit

Continuing from my previous solved question I'm facing a new problem so I started a new question. I'm trying to add circle for each CLLocationCoordinates2D in an array var routeObsticle: [CLLocationCoordinate2D] = [] and I have a counter var…
Vincenzo
  • 5,304
  • 5
  • 38
  • 96
1
vote
1 answer

How to resize mapOverlay with handle on the edge of the overlay?

so like the title says, I would like to know how to implement the black handle/button there is on the edge of the overlay Code I user for creating my overlay and annotation currently func makeAnnotation(locationCoordinate: CLLocationCoordinate2D){ …
CFRJ
  • 157
  • 1
  • 12
1
vote
1 answer

Getting an error trying to apply circle overlay in swift 3

i encounter an error : Cannot invoke initializer for type 'MKCircle' with an argument list of type '(center: CLLocationCoordinate2D,radius: int,identifier: String)' let region = CLCircularRegion(coder: MKCircle(center:…
1
vote
1 answer

Using viewForOverlay to return an MKOverlayView but I also need to return an MKCircleRenderer in the same method

I have an MKMapView that I need to display two types of overlay on. One is a tiled overlay that I use a subclass of MKOverlayView and an MKCircleRenderer. My method is: - (MKOverlayView *)mapView:(MKMapView *)mapView viewForOverlay:(id…
1
2