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

Drawing a Custom Overlay on MKMapView with Core Graphics does not show on Map

I am working with iOS 7 and have extended an MKOverlayPathRenderer in order to draw custom overlays on an MKMap. I have implemented the following method of the MKOverlayPathRenderer class and the NSLog output shows that the code is called for…
totalcruise
  • 1,343
  • 2
  • 13
  • 25
2
votes
0 answers

MKMapView hide map tiles and set transparent background

I am trying to display some annotations on a map. I want to use the MKMapView class because of the way it handles annotations, it's great for me. But I have my custom map system which works with its own view. I have tried to implement method…
The dude
  • 7,896
  • 1
  • 25
  • 50
2
votes
1 answer

XCTest, a ViewController with a Nib & MKMapView

I am trying to test that my map is showing location parameters that I give it. I am using a Nib for my view controller (I hate Storyboards). The problem I've run into is that my map is nil in my test. The map is initialized in the Nib and isn't…
Miriam H.
  • 671
  • 2
  • 8
  • 25
2
votes
0 answers

MKMapView - Multiple MKAnnotationView With Same Coordinates

I have multiple MKAnnotationViews on a MKMapView. Since all MKAnnotationViews have the same coordinates the user can't see them separately on the map and they all look like a single annotation. How can I organise them on the map that they all be…
jkigel
  • 1,592
  • 6
  • 28
  • 49
2
votes
1 answer

iOS Need help overcoming memory issue

I have recently ran into a problem where my MapView appears to be using more memory than it should. I have disabled all my methods that are populating the annotations and downloading data etc and leaving the app just to the map view essentially. The…
Jon Erickson
  • 1,876
  • 4
  • 30
  • 73
2
votes
0 answers

Trying to select an annotation gives an error on device

I have a mapview with a number of annotations on it , the user has the possibility to search for a specific annotation through a search modal screen . The logic is when the user selects an annotation from the search table the mapview conforms to a…
poa
  • 269
  • 1
  • 4
  • 13
2
votes
5 answers

Center the MKMapView onto my location when pressing a button

My app includes an MKMapView that shows the users location as a blue bullet. Now I made a button (just like in a normal map app) that when pressed should center the map view onto the users location, but I don't know how to do so.
Yo Mama
  • 31
  • 1
  • 3
2
votes
2 answers

how to show map scale during zoom of MKMapView like Apple's Maps.app

i am using MKMapView in my custom app and would like to show a map scale (tape measure) during zooming like Apple's Maps.app. Is this possible? If not, and i would implement my own map scale, how can i get continious update information while the…
Reneli
  • 1,756
  • 2
  • 16
  • 26
2
votes
1 answer

Implementing 3D Maps with MKMapView in iOS7

I've dropped an MKMapView into my project in Interface Builder and checked the ratio button for "3D Perspective". But when I run the app, I'm unable to adjust the pitch using a two finger swipe, so it's appearing as though the 3D Perspective simply…
darkheartfelt
  • 1,078
  • 2
  • 12
  • 26
2
votes
0 answers

iOS draw graph with gradient on mapkit

I try to modify the Breadcrumb example from Apple in the way that the drawn path has a gradient. I can not make I work. The colour of the path is black and not gradient. Someone got an idea? if (path != nil) { CGContextAddPath(context, path); …
simon
  • 111
  • 1
  • 4
2
votes
1 answer

MKMapView inside a UIScrollView

I want to create something similar to these pictures in the FourSquare. So, when the user scrolls down, after a certain point , the height of the map changes and takes almost all of the screen, and the rest screen is moving down. What structure…
ghostrider
  • 5,131
  • 14
  • 72
  • 120
2
votes
1 answer

MKMapView with a static Annotation

I have an MKMapView set up and how I want to to look. What I want to add is an Annotation that stays always on screen. That means that the pin is always visible, and I can drag and drop the MapView. I want the annotation view to display the…
2
votes
0 answers

MKLocalSearch not returning correct cities

I am using MKLocalSearch to find locations in US. The search is not returning correct locations. When I searched for San Francisco, I got the location (I was near to San Francisco). But, when I searched for Newyork, it showed a street near by.…
user2734323
  • 706
  • 1
  • 8
  • 19
2
votes
1 answer

MKMapView to UIImage iOS 7

The code to render a MKMapView to an UIImage no longer works in iOS 7. It returns an empty image with nothing but the word "Legal" at the bottom and a black compass on the top right. The map itself is missing. Below is my…
smartfuse
  • 51
  • 6
2
votes
1 answer

mapview random annotation image

I'm having great trouble figuring out what I'm doing wrong here... I am adding annotations to my mapview through loops, but the annotation image is completely random every time... when I NSLog the order, it's random - i'm not sure if that is the…