mkmapview Questions

4

I am trying to capture tap event on my MKMapView, this way I can drop a MKPinAnnotation on the point where user tapped. Basically I have a map overlayed with MKOverlayViews (an overlay showing a bu...

2

I am writing an iPhone app in which I place a large PNG image (1936 × 2967) on an MKMapView using MKOverlayView. I am a little confused about how to appropriately implement the drawMapRect: functio...
Haden asked 13/11, 2010 at 23:48

3

Solved

I know this question has been asked multiple times, however all of the answers seem slightly different than what is going on in my app. My understanding is that the viewForAnnotation function is c...
Oospore asked 27/3, 2016 at 17:58

4

I am using this code to set the region of an MKMapView such that it is centred around pin and zoomed to show an approximate 10km area. CLLocationAccuracy accuracy = kCLLocationAccuracyKilometer; M...
Otoplasty asked 16/4, 2014 at 14:3

7

Solved

I'd want to move the Legal label to the right side. On iOS 6 and 7 the below solution was working fine, however on iOS 8.3 it seems to not work. I get the label, then with a timer (0.1 sec) in vie...
Freshwater asked 9/6, 2015 at 14:59

3

Solved

I am trying to create a snapshot of a MKMapView in iOS7 application the same way it's recommended everywhere for previous iOS versions: - (UIImage*) renderMapViewToImage { UIGraphicsBeginImageCon...
Eades asked 13/9, 2013 at 0:19

3

Solved

On my iPad app I am using iOS map to display few points using annotation. I want to display custom callout too when an annotation is been selected. I am using UIPopoverController to show callout. H...
Logician asked 20/5, 2014 at 12:46

1

I need to draw lines to demonstrate transportation of goods on apple maps. To clarify start- and end-point, I draw a little arrowhead on the destination side.The arrowhead is drawn separately but i...
Hofmannsthal asked 21/5, 2018 at 11:2

0

I have added Apple's new MKUserTrackingButton to my app on a map view. It works fine when the user has previously given permission to use location services (e.g. CLAuthorizationStatus.authorizedWhe...
Subgroup asked 14/5, 2018 at 13:57

3

Solved

I need to count number of annotations when i zooming mapView, and get array with which are shown on map, and then, i need to reload my Table and show list of only which shown on map. How can i ge...
Jaal asked 13/8, 2013 at 7:26

2

Solved

I try to draw a line on a MKMapView with a pattern image. The drawing is done by adding a custom MKMapOverlay view. I'm able to get the line drawn, but it seems that the drawing is done using onl...
Rhoades asked 1/7, 2012 at 13:14

2

Solved

I am coding one Location based App by Swift. I make my MapView can show Compass, but I would like to change the compass location from the right-up corner to the left-down corner. Does any e...
Gaillard asked 10/7, 2016 at 3:21

1

Solved

MKAnnotationView animation in iOS using Swift 4 Add animation to pins for adding pins to map smoothly. While adding pins to map, it is not smooth or it has no animation effect. Is there any simple...

12

Solved

Has anyone else, who's using maps in their iOS 6 apps, noticing extremely high memory use to the point of receiving memory warnings over and over to the point of crashing the app? I've ran the app...
Brackett asked 28/9, 2012 at 14:9

11

Is it possible to move the coordinate of a MKAnnotation without adding and removing the annotation from the map?
Lingonberry asked 13/2, 2010 at 1:44

6

I have a GPS coordinate (latitude, longitude) and I quickly want to place a single pin on a MKMapView showing that position. Everything works just fine, but as I only need a single pin with no call...
Drews asked 27/3, 2012 at 14:49

1

Solved

I'm trying to draw an annotation exactly as in a 'live' MapView, but then in a MKSnapshot. Why an MKSnapshot > because I want to have non-interactive MapViews in a UITableView and using images is m...
Florist asked 6/3, 2018 at 16:51

2

I am new to Maps Concept. Please find the attached image once. when i click the "pin" i am getting message says "Admire your smile" or any text..... Now i want like... when we select the table...
Nelsonnema asked 2/4, 2013 at 7:0

5

Solved

This is frustrating me!!! It will be called most of the time but then it stops responding to the pinches. It will be called on a screen rotate and a double tap. Not to a pinch! Help!
Nub asked 7/11, 2010 at 16:29

3

Solved

In an iPhone App how can you calculate distance between two points in MKMapView as shown in the image below? The first point would be the center point of the visible map in the mapview. The 2nd p...
Identic asked 3/11, 2011 at 10:51

2

Solved

How can we ensure that the annotation views are placed in a specified order/ position on the map? I have a case where a single address can have multiple annotations (on top of each other). For exa...
Sympathizer asked 26/12, 2014 at 10:49

9

I'm saving map region into user defaults when my iPhone app is closing like this: MKCoordinateRegion region = mapView.region; [[NSUserDefaults standardUserDefaults] setDouble:region.center.latitud...
Inexpensive asked 5/9, 2009 at 13:9

2

Solved

@IBOutlet weak var map: MKMapView! override func viewDidLoad() { map.delegate = self showAlarms() super.viewDidLoad() // Do any additional setup after loading the view. } func showAlarms(){ ...
Sachsen asked 23/1, 2017 at 6:20

3

Solved

I'm trying to change from Swift 1.2 to Swift 2.0 and I'm at the end of the changes. Currently I'm making changes in the MapViewController, and there isn't any error or warning, but the custom image...
Katricekatrina asked 29/9, 2015 at 9:3

2

I've a MKMapView that I expand and contract with code like this: UIView.animate(withDuration: 0.5) { mapView.frame = CGRect(x: 0, y: 0, width: 200, height: 400) } Before IOS 11 the above code w...
Tipstaff asked 23/10, 2017 at 13:25

© 2022 - 2024 — McMap. All rights reserved.