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

Bug with MKMapView's centerCoordinate during rotation?

I think I may have found a bug in MKMapView, but I'd like to run it by folks to see if anyone else has run into this issue. I'm using iOS 7 and Xcode 5. In my storyboard, I have a view controller with an MKMapView in it. My app allows rotation to…
NathanAldenSr
  • 7,841
  • 4
  • 40
  • 51
2
votes
2 answers

iOS MKMapView - stop map view from re-centering to the user's location if the user has panned/dragged the map view

I have an MKMapView in which I have set: [self.mapView setShowsUserLocation:YES]; I want to show the user's location, and update the location if he/she moves. When didUpdateUserLocation gets called it seems like the map re-centers to the user's…
Anders
  • 2,903
  • 7
  • 58
  • 114
2
votes
1 answer

Adding action to MKMapView annotation

I have a MKMapView with a bunch of annotations but I can't add an action to them. I was just creating an MKPointAnnotation, but I couldn't add an action to that. Whenever I click the annotation, nothing happens. Here is how I am setting the…
matthew
  • 467
  • 8
  • 23
2
votes
2 answers

iPhone MkMapView lock center to userlocation

I have a MkMapView and want to keep the Map centered to the user's location, exaclty as the iPhone Map Application does when you press the scope button. I am using the setCenterCoordinate method because I don't need to set the zoom. I use it…
user223814
  • 51
  • 2
  • 6
2
votes
3 answers

Share MKMapView screenshot

I have a MKMapView and I would like to take a screenshot of it and share it to a social network, for example to Facebook. I've found a nice way to make the screenshot, using MKMapSnapshotter (which is available starting with iOS 7), but my question…
iOS Dev
  • 4,143
  • 5
  • 30
  • 58
2
votes
1 answer

How to add callout into individual annotation in map view

I'm trying to set each annotation with different callout detail info. Currently when I click on any annotation location, it shows all the callout info. #import "AnnotationViewController.h" #import "Annotation.h" @implementation…
2
votes
1 answer

changing added MKAnnotationView alpha in didAddAnnotation affects all MKAnnotationViews on screen

I'm trying to fade my annotations in through animation, so I create them with an alpha of 0, and then animate their alpha to 1 in didAddAnnotation. Sometimes I'm only adding a few annotations, subtracting others, but right now EVERY annotation on…
darkheartfelt
  • 1,078
  • 2
  • 12
  • 26
2
votes
1 answer

MapKit - Update MapView to display Moving Annotations via Timer

The end state I'm trying to achieve is to have a running Timer that refreshes a collection of "Vehicle" annotations. The annotation coordinates are successfully refreshing every 60 seconds using the Timer, but the user must invoke…
CampbellGolf
  • 812
  • 12
  • 27
2
votes
2 answers

Animating RMPointAnnotation in on RMMapView with CAAnimation

So I'm using the MapBox SDK which is a fork of the RouteMe's map SDK for iOS. From what I can tell, the annotation stuff might be in here. I've modified some CAAnimation code I found here to try achieve this. My code is below. Since I'm reasonably…
Sam Jarman
  • 7,277
  • 15
  • 55
  • 100
2
votes
2 answers

User Current Location Not Find

In one of my Project I Have to send Users current Location to web server in the Appdelegate . It is working fine when the user click on the Ok button of the alert shown to get permission from the user.But at the first time when I running the…
chakshu
  • 1,372
  • 2
  • 10
  • 21
2
votes
2 answers

How to put my own map in MKMapView

I need create an app for iOS using the GPS and MapKit. The idea is create my own map of my house for example and add it to the UIView or MKMapView and see the current position into the map. see the image
kakashy
  • 714
  • 9
  • 24
2
votes
0 answers

Can't get MKTileOverlay to support 1024 x 1024 sized tiles...

if I set the tileSize property of MKTileOverlay to tileSize=CGSizeMake(1024, 1024). the mapViewer shows my tiles all over the view with gaps and in the wrong order. I have produced tiles that are in the dimension 1024 x 1024. zoom level 1 has 4 png…
jack
  • 1,861
  • 4
  • 31
  • 52
2
votes
1 answer

Get Index of MKAnnotation in MapView.annotations Array

I am making an App in xCode with an MKMapView and MKAnnotations. If you make more than two annotations the extra waypoints colors (PinAnnotations) should be changed to purple. Therefore I need something like a tag, IndexPath or ID from the…
user3191334
  • 1,148
  • 3
  • 15
  • 33
2
votes
2 answers

Callback after animating to a new MKMapCamera

I want to call a method after an MKMapView animates to a new MKMapCamera. I started out by attaching the MKMapCamera using this method: [self.map setCamera:cam animated:YES]; This method causes the animation but doesn't inform me when the…
Matt
  • 1,359
  • 18
  • 22
2
votes
0 answers

Limit MKMapView cache size

I have a MapView which is a singleton I reuse in many different views. As a consequence, this instance's cache will build up each time I show a new location. At a certain point, the device will send a memory warning, and that's the time when I…
Guilherme
  • 7,839
  • 9
  • 56
  • 99