Questions tagged [mkmapviewdelegate]

MKMapViewDelegate is a protocol that describes events originating from an MKMapView.

MKMapViewDelegate is a protocol that describes events originating from an MKMapView. Interested classes can get messages for changes to the map's annotations, overlays, visible region, and user location updates.

For more information, see the Apple Documentation for MKMapViewDelegate.

160 questions
0
votes
0 answers

Is How do I solve the error Event registration is overwriting existing delegate for MKMapView?

When I try to run my Xamarin.forms maps application I get the following error: Event registration is overwriting existing delegate. Either just use events or your own delegate: MyApp.iOS.CustomRenderer.MapDelegate…
0
votes
0 answers

MapView delegate returning nil

I'm doing an app that I input one address in one ViewController and this address goes to the MapView in other ViewController and add an annotation. But when I add the address when return to the mapview the app crashes and show me that my…
0
votes
0 answers

How to add and remove pins in mapview when zoom in and zoom out

I want to update pins on map view when we zoom in and zoom out.For Example I have multiple location on map view now now when I zoom in any one of them So the radius is updated and now those place which are still in radius will remain visible others…
Nasir Javed
  • 315
  • 2
  • 3
  • 13
0
votes
1 answer

MapView User's Current Location Regular Pin

Im having trouble putting a "regular" pin on the user's current location. I searched around but couldn't find much. Right now, in the user's current location I just have the location beacon. How can I change it to just the regular "pin"? I tried…
rengineer
  • 349
  • 3
  • 19
0
votes
2 answers

MKMap I can't open a URL in my mapview swift 4

Hello guys I am working with MKMap and populating some pins into a map everything is good with that in the pin I can show name and last name + when I click the pin shows an URL but the idea is when I tap the URL to open the web browser and redirect…
Felipe Valdivia
  • 369
  • 3
  • 18
0
votes
1 answer

MKPointAnnotation adding button

I'm trying to add a button to then do to a new viewcontroller to my MKPointAnnotations I've looked closely at these two questions How to add button to MKPointAnnotation in Swift How to add a button to the MKPointAnnotation? and they both have func…
Blue
  • 1,408
  • 4
  • 17
  • 36
0
votes
3 answers

how to prevent deselection of an annotation automatically swift

I've a view with a map inside. I'd like to achieve the following: when the user taps on the map an annotation is displayed and selected (so the callout bubble is shown) until the user taps another point on the map (in this case, the previous…
Frank
  • 364
  • 1
  • 7
  • 18
0
votes
0 answers

Obj-C MkMapView Polygon Overlay color is weird and blurring the mapView / glitching

I'm getting this pink area along with polygon when i click on annotation icon, ? it doesn't show while zoom-in and zoom-out. I'm getting this issue in both Simulator and also on device. - (MKOverlayRenderer *)mapView:(MKMapView *)mapView…
VRR
  • 1
  • 1
0
votes
1 answer

Add an image to MKPointAnnotation without changing User Location image

I am using this code to add image to MKPointAnnotation. - (MKAnnotationView *)mapView:(MKMapView *)theMapView viewForAnnotation:(id )annotation { static NSString *SFAnnotationIdentifier = @"SFAnnotationIdentifier"; …
0
votes
0 answers

MKOverlay not appearing until MKMapView is zoomed or moved?

So I got an MKCirlce (MKOverlay), and I've added it like this: self.current_location_overlay = MKCircle(center: self.current_location!, radius: 200) self.mk_map_view.add(self.current_location_overlay!) I've set the map delegate and added this…
Heestand XYZ
  • 1,993
  • 3
  • 19
  • 40
0
votes
1 answer

Loading data from api and showing annotation after MKMapView's region is successfully set to user's current location

I have an MKMapView where I'm showing annotations and the location informations are coming from an API. I've added a button which will trigger getting data from the API and showing corresponding annotations in the map view. However, I'm trying to…
nayem
  • 7,285
  • 1
  • 33
  • 51
0
votes
2 answers

Swift Using NotificationCenter to Pass Data Between View Controllers

I am trying to pass the data of user-input coordinates from one VC to another using Notifications. When I run the code, it does not add an annotation onto the MapView, so I have a hunch I may have not set up the notification to send with the…
Kevin
  • 1,189
  • 2
  • 17
  • 44
0
votes
1 answer

Class is not key value coding-compliant for the key in Swift

I have a MapKit app with several annotations. When tapped the annotations go to the following page. I want the 'Open in Maps' button to take the co-ordinates from the Annotation and the user's current location (already being tracked) and open the…
T. Kearsley
  • 197
  • 3
  • 18
0
votes
1 answer

How to detect in which direction map view changed region

I am working on delivery related app. In this app, one view is showing map view. On which if map view change its region then how to find direction of map view's region from current location?
0
votes
1 answer

How do I display MKCircle in Swift 3

I am having issues displaying a Overlay in swift 3..updates have been made and i cannot seem to get it to display: in my view did load override func viewDidLoad() { super.viewDidLoad() // Do any additional setup after loading the…
Mikael491
  • 3
  • 5