Questions tagged [mkmapview]

MKMapView is part of Apple's MapKit framework for developing location-aware iOS applications, and provides an embeddable map interface. Effective iOS 6, the MapKit framework uses Apple's own map service. In iOS 5.1 and earlier, the framework uses the Google Mobile Maps service.

MKMapView is part of Apple's MapKit framework for developing iOS applications, and provides an embeddable map interface. Effective iOS 6, the MapKit framework uses Apple's own maps service. In iOS 5.1 and earlier, the MapKit framework used the Google Mobile Maps service, as described in the MKMapView Class Reference:

Important: In iOS 5.1 and earlier, the MapKit framework uses the Google Mobile Maps (GMM) service to provide map data. Use of specific classes of this framework (and their associated interfaces) is subject to the Google Mobile Maps terms of service. You can find these terms of service at https://web.archive.org/web/20120225140619/http://code.google.com/apis/maps/iphone/terms.html.

References:

4988 questions
2
votes
1 answer

MKAnnotation: Clicking on the text in MKAnnotation info view should call a number

I am using a MKMapview to display a map in my native iPhone application and I add two markers to the map view. On clicking the annotation marker I want a phone number to be displayed and clicking on the phone number should make a call to that…
Amal
  • 664
  • 4
  • 10
  • 23
2
votes
3 answers

Confused with Apple Map Vs Google Map

This might be a very stupid question for some people but I want to be make sure about this. In iOS6 Apple has updated its Map application and added his own map. Now if I develop any native application and include map(MKMapView) into this so are…
Saurabh Shukla
  • 1,368
  • 3
  • 14
  • 26
2
votes
3 answers

Why MKMapView is not showing current location red pin?

MapView is showing my current location but no red pin (or blue circle) appears. Location services are enabled on this device. However, the red pin is shown running on simulator the same code. I already set required…
Centurion
  • 14,106
  • 31
  • 105
  • 197
2
votes
1 answer

ios sdk MKMapView overlapping pins?

I have map view and many pins on it. When the map view is zoomed out, I group overlapping pins into 1 (and show in label total count of pins in it). But what to do, if map view is max zoomed in, and pins are still overlapped? How can I shift them…
arturdev
  • 10,884
  • 2
  • 39
  • 67
2
votes
2 answers

Change the position of Map point without changing zoom level or span

I am using following codes MKCoordinateRegion viewRegion = MKCoordinateRegionMakeWithDistance(CLLocationCoordinate2DMake(annView.annotation.coordinate.latitude, annView.annotation.coordinate.longitude - .04), Some KM, Some KM); MKCoordinateRegion…
Muhammad Umar
  • 11,391
  • 21
  • 91
  • 193
2
votes
2 answers

Display scale on mapView

I want to display a scale on a mapView. I found this thread, from which I added the following code to my mapViewController.m: - (void)mapView:(MKMapView *)map regionDidChangeAnimated:(BOOL)animated { MKCoordinateSpan span =…
Max von Hippel
  • 2,856
  • 3
  • 29
  • 46
2
votes
2 answers

How to change the callout bubble color in MapView annotation?

I want to be able to display a bluish bubble(default one is black) for callout for an annotation. Wherever I search I only get samples to implement viewForAnnotation delegate method, but that only changes the annotationView not the bubble at the…
Amogh Talpallikar
  • 12,084
  • 13
  • 79
  • 135
2
votes
3 answers

MKMapView setRegion:Animated: work on simulator but not on device iOS6

I have an MKMapView. To change the displayed region I use [self.mapView setRegion:region animated:YES]; The strange is that on simulator the region is changed with animation, but on device the change is immediate and not animated. I change the…
Fry
  • 6,235
  • 8
  • 54
  • 93
2
votes
2 answers

Prevent MKMapViewDelegate methods from being called on device rotation

I am adding some functionality in - (void)mapView:(MKMapView *)mapView regionWillChangeAnimated:(BOOL)animated and - (void)mapView:(MKMapView *)mapView regionDidChangeAnimated:(BOOL)animated I want this to be called when the map region is…
Lollypop
  • 251
  • 1
  • 5
  • 14
2
votes
1 answer

MKMapPointForCoordinate returning invalid coordinates

I am working with MKMapView's, annotations, overlays, etc, but I'm having a pain in the butt issue with MKMapPointForCoordinate() returning an invalid coordinate. Code: MKMapPoint* pointArr; for (Category* route in validRoutes){ NSString*…
Ryan Copley
  • 873
  • 1
  • 10
  • 26
2
votes
1 answer

How to display multiple MKPointAnnotation's callout at once in MKMapView?

In iOS, only one MKPointAnnotation's callout can be displayed at a time. I would like to be able to show all of the pins' callouts on the screen at once. Any recommendations would be appreciated.
user1530580
  • 189
  • 3
  • 15
2
votes
1 answer

Does MKOverlayPathView need drawMapRect?

I'm having some inconsistencies modifying the Breadcrumb example, to have the CrumbPathView subclassed from MKOverlayPathView (like it's supposed to) rather than subclassed from MKOverlayView. Trouble is, the docs are limited in stating the…
PostCodeism
  • 1,070
  • 1
  • 12
  • 20
2
votes
1 answer

How to get location services to reprompt the user for location permission if they accidentally refused it?

When the users are asked to allow the user location, if they select accidentally "NO", then this alert is never shown in our app. Is there any option to reprompt the alert every time they open the app.After referring S.O question, many are…
NSUserDefault
  • 1,794
  • 1
  • 17
  • 38
2
votes
1 answer

How to show user location when user tap don't allow for the next time?

In my app,I want to show user location in one of my UIViewController which uses MKMapKit.So when the user selects this View Controller they will be asked whether to allow or don't allow. If user selects allow, then everything fine.If they selects…
NSUserDefault
  • 1,794
  • 1
  • 17
  • 38
2
votes
1 answer

How to set a scope to click on Annotation on an iOS map

I'm developing an iOS game with a Mapview, where I want to select an opponent from the multiple annotations on Map then I'll hit him. In the Map first user will select a range where he/she will find opponent and at that time some area(in particular…
Eager Beaver
  • 949
  • 3
  • 11
  • 20
1 2 3
99
100