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
0 answers

How to remove blue dot from MkMapView when user click on MKUserTrackingBarButtonItem?

I am using MKUserTrackingBarButtonItem in MkMap. I have to remove blue dot from makmap.
Akshay
  • 109
  • 1
  • 8
2
votes
1 answer

Creating a custom callout in ios

I want to create custom callouts on my map. I've tried this right now - -(void)mapView:(MKMapView *)mapView didSelectAnnotationView:(MKAnnotationView *)view{ NSLog(@"ANNNOTATION VIEW : %@", view); NSLog(@"VIEW ANNOTATION: %@",…
praks5432
  • 7,246
  • 32
  • 91
  • 156
2
votes
2 answers

Blue dot not removed when adding MKPointAnnotation with image

I am adding MKPointAnnotation annotation using MKMapView. I have given image to MKPointAnnoation but blue dot is not removed. -(void)updateMarkerWithUserLocation { NSString *name= [[NSUserDefaults…
Akshay
  • 109
  • 1
  • 8
2
votes
2 answers

Wrong image MKAnnotationView after refreshed the map

I have a mapview hundreds of annotations. I load annotations in background, and when all annotations are loaded, I call the method: setAnnotations. I have 6 types of annotations with different pin for each other. It works well for the first loading.…
Lapinou
  • 1,467
  • 2
  • 20
  • 39
2
votes
1 answer

Resizable MKOverlay using MKOverlayRenderer

I want to have a custom MKOverlay that's a circle anchored to the user location annotation that the user can resize by pinching. I was able to successfully achieve this using MKOverlayPathRenderer and a custom MKOverlay object by overriding the…
barndog
  • 6,975
  • 8
  • 53
  • 105
2
votes
1 answer

Multiple ViewControllers with MKMapView

In my app I've got a UINavigationController. In some of the pages I got a MKMapView as the back view (allows changes to map view the overlay UIView UI, so I can't make it as a image). In some combinations, It's possible to have 3 or so MKMapView…
user2558461
  • 281
  • 1
  • 6
  • 21
2
votes
1 answer

iPhone - remove pin annotations of map, but not mine

I use a MapView and I set annotations on it (purple pins) and my user location (which is a blue circle). Because the purple pin annotations will move, I have to remove and set them new to the map. I set it with: CLLocationCoordinate2D…
Tim
  • 13,228
  • 36
  • 108
  • 159
2
votes
1 answer

Update MKMapkitview annotaions not working?

i have one UIViewcontroller with a MKMapKit and a PickerView.Like as shown below image. and i have one plist which contains all co ordinates corresponding to the values in PickerView .So once i select any item from PickerView i will refresh the…
Bangalore
  • 1,572
  • 4
  • 20
  • 50
2
votes
2 answers

Polyline not drawing from user location (blue dot)

- (void)viewDidLoad { [super viewDidLoad]; CLLocationCoordinate2D currentLocation; currentLocation.latitude = self.mapView.userLocation.location.coordinate.latitude; currentLocation.longitude =…
S.J
  • 3,063
  • 3
  • 33
  • 66
2
votes
1 answer

storing MKRoute in Core Data

I am currently trying to store an MKRoute object in core data. All I really need from it is the MKPolyLine so if I can store that that's fine too. I've tried using NSKeyedArchiver but that just simply throws an exception and crashes my program. …
jsookiki
  • 522
  • 1
  • 6
  • 23
2
votes
1 answer

How to zoom out in maps in an ios app using storyboard?

I am creating an iOS app using storyboard to plot some locations in a map. While running it, in the simulator, whatever button(mouse button) I click, the view just zooms in. How can I zoom out. Whether I should place a scroll bar in the view, or is…
chandru
  • 407
  • 1
  • 5
  • 26
2
votes
1 answer

Custom annotation won't update on the map view when it's updated

I'm doing the willChangeValueForKey and didChangeValueForKey calls but even with them the mapView delegate never runs through the mapView: viewForAnnotation: to update the thing. How can I force the MKAnnotation to be updated? The…
Justin808
  • 20,859
  • 46
  • 160
  • 265
2
votes
1 answer

MapKit Xcode programming

when i write this method : -(MKAnnotationView *) mapView:(MKMapView *)mapView viewForAnnotation:(id)annotation { MKPinAnnotationView *view =[self.mapView dequeueReusableAnnotationViewWithIdentifier:@"pin"]; if (view == nil) { …
2
votes
2 answers

MKAnnotationView subclass with custom callout and button

I currently have a StationCalloutView that's a subclass of UIView (with a xib). Also I've got a Station thats a MKAnnotation and an StationAnnotationView that's a subclass of MKAnnotationView. In StationAnnotationView to open StationCalloutView I'm…
fdiaz
  • 2,600
  • 21
  • 27
2
votes
0 answers

Showing label next to MKPolyline

I am trying to present a route on my MKMapView using the new iOS7 APIs for MKDirections. I have figured out how to calculate the routes and display them on the map using MKPolyline and MKPolylineRenderer. The only problem is how to display a little…
Z S
  • 7,039
  • 12
  • 53
  • 105