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
35
votes
12 answers

Is there way to limit MKMapView maximum zoom level?

the question is - is there a way to limit maximum zoom level for MKMapView? Or is there a way to track when user zooms to the level where there's no map image available?
Vladimir
  • 170,431
  • 36
  • 387
  • 313
35
votes
8 answers

Zoom MKMapView to fit polyline points

I have an array, allCollections, that holds programmatically-created arrays of CLLocations the user has recorded through my iOS app. Each sub-array in allCollections holds all the location points in a trip taken. I draw MKPolylines off of the…
user768339
  • 603
  • 2
  • 7
  • 8
35
votes
0 answers

Can I still use Google Maps in iOS 6 and up?

As you may know Apple recently announced iOS 6 and with it their own new maps. I just ran my app on the new version iOS and it uses as standard maps in MKMapView the new Apple Maps. It is probably awesome but my app is relying on Google Maps,…
BObereder
  • 1,046
  • 1
  • 13
  • 29
34
votes
5 answers

How to change MKMapView's user-location blue dot to an image of choice?

Is it possible to change the blue dot which indicates the user's location in MKMapView to an image? For example a little car or any .png image?
Pangolin
  • 7,284
  • 8
  • 53
  • 67
32
votes
2 answers

objective-c MKMapView center on user location

I'm trying to zoom into the user location as the center reference for the screen. I have this code: MainViewController.h #import #import "FlipsideViewController.h" #import #import…
sadmicrowave
  • 39,964
  • 34
  • 108
  • 180
31
votes
4 answers

How to capture Tap gesture on MKMapView

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 building) and I would like to give user more…
31
votes
2 answers

latitude and longitude points from MKPolyline

I am trying to figure out a way to get all the latitude and longitude points from a MKPolyline drawn on a MKMapView on an iOS app. I know the MKPolyline does not store latitude and longitude points, but I am looking for a way to build an array of…
zumzum
  • 17,984
  • 26
  • 111
  • 172
30
votes
5 answers

how to find current zoom level of MKMapView?

I want to know the current zoom level of MKMapView in iphone programming, how can I do that? Actually I have one app, that is taking few arguments(Radius from center to corner of MKMapView) are returning the store details in that are, when I am on…
Chatar Veer Suthar
  • 15,541
  • 26
  • 90
  • 154
30
votes
3 answers

MKAnnotationView - Lock custom annotation view to pin on location updates

Update #5 I guess it's bounty time. 100+ views and no one's taken a stab, even with the code sample I've posted. How about some reputation points! Update #4This is a pretty complicated question, so I created a new tab based project which just…
djibouti33
  • 12,102
  • 9
  • 83
  • 116
30
votes
2 answers

Swift different images for Annotation

I managed to get a custom icon for a annotation pin in Swift, but now I am still stuck using 2 different images for different annotations. Right now a button adds a annotation to the map. There should be another button that also adds a annotation…
Fabian Boulegue
  • 6,476
  • 14
  • 47
  • 72
29
votes
3 answers

How to set accuracy and distance filter when using MKMapView

When i use setShowsUserLocation with MKMapView to track user location, how do I set the accuracy and distance filter? I am not talking about CLLocationManager. Thanks,
Van Du Tran
  • 6,736
  • 11
  • 45
  • 55
29
votes
7 answers

Refresh MKAnnotationView on a MKMapView

I'd like to a-synchronically load images for my custom MKAnnotationView; I'm already using the EGOImageView-framework (it goes very well with UITableViews), but I fail to make it work on MKMapView. Images seem to be loaded, but I cannot refresh them…
cocoapriest
  • 1,869
  • 3
  • 22
  • 36
29
votes
8 answers

How to detect taps on MKPolylines/Overlays like Maps.app?

When displaying directions on the built-in Maps.app on the iPhone you can "select" one of the usually 3 route alternatives that are displayed by tapping on it. I wan't to replicate this functionality and check if a tap lies within a given…
myell0w
  • 2,200
  • 2
  • 21
  • 25
28
votes
2 answers

How to determine if an annotation is inside of MKPolygonView (iOS)

I'm trying to calculate if a specific annotation(like the blue circle of the user location) or a MKPinAnnotation is inside an MKPolygon layer on the mapview. Any advice to achieve this?
Mat
  • 7,613
  • 4
  • 40
  • 56
28
votes
7 answers

Detect Tap on CalloutBubble in MKAnnotationView

Im working with MKMapView and MKAnnotationView. I have an annotation in the map. When the users tap on it, the callOut Bubble is displayed. When the annotation is tapped again ( and the callOut Bubble is visible ) i need to change to another…
Alejandro González
  • 638
  • 1
  • 8
  • 17