mapkit

Zoom in a MKMapView programmatically

I'm using a MKMapView inside an iPhone app. When I click a buttom the zoom level must increase. This is my first approach: MKCoordinateRegion zoomIn = mapView.region; zoomIn.span.latitudeDelta *= 0.5; [mapView setRegion:zoomIn animated:YES]; However, this code had no effect, since I didn't update the longitudeDelta value. So I added t...

image markers on MKMapView

Need to use own imaged markers instead built-in pins. I have several questions. 1. Is it legally? I have a doubt because there is no standard support for markers(pins) with own icon. How to make a marker with own icon right way? I found the post which actually describe how-to: http://www.arlingtondev.com/thoughts/?p=81. I am a newbie, ...

Bug in MKMapView?

When I open MapView with navigationcontroller in a new view, then not waiting till map loads, and then clicking on the back button - I an exception is thrown. Can anyone confirm this? What is a work-around? ...

MKMapView and setRegion:animated: not updating the map visuals

Greetings! I'm attempting to use MKMapView without any Apple code samples, though there are a few others out there of varying clarity. (I know, "Read the friendly manual." I've done that but it's not 100% clear, so please bear with me on this one.) Here's the situation. I have a MKMapView object, wherein I have added a set of about ten ...

MKMapView linker error

Hi, I have upgraded my iphone sdk from 2.2.1 to 3.0. I downloaded a sample code for MapKit and was able to run it successfully. But when I tried to write my own program I faced linker errors. The error is not thrown when I import MapKit/MapKit.h or when I declare a variable as MKMapView *mapView; I get the error when I say [[MKMapView ...

Map Kit: Custom placemarks

Hello, how do I use custom placemarks instead of the standard pins with MapKit on the iPhone? Regards ...

How to define the order of overlapping MKAnnotationViews?

I have several MKAnnotations (and their corresponding views) in my map, and it sometimes gets really crowded. Now, the annotations in my app come in two flavors: some are bound to stay where they are, while others will move as time goes on. I'd prefer to have the more stable ones visually in the background and the moving ones to always p...

How can I use MKPinAnnotationView on top of a regular UIView (instead of on a map)

I'm writing an iPhone application that will contain a custom map -- my own image for the map, not Google's. The image isn't very large, so instead of using a library such as RouteMe, I'm opting for just a UIScrollView with an embedded image (the map). My question is: it is possible to re-use Apple's MKPinAnnotationView classes on top of...

MKMapView Zoom and Region

I'm familiar with using google maps javascript api. Recently I started using mapKit framework for an iphone project, but I'm having a hard time to figure out zooming and setting a region on map. In google maps api I used to use integer zoom levels like 8, 9, 10 along with straightforward function setZoom(). The only equivalent method I ...

MKPinAnnotationView: Are there more than three colors available?

According to the Apple docs, MKPinAnnotationView's pin color is available in red, green and purple. Is there any way to get other colors also? I've found nothing in the docs. ...

Issue with receiving touches for a UIView subview of a MKMapView using MapKit

I have added a subclass of UIView as a subview to an MKMapView when a button is pressed. The UIView has its background colour set to be clear. This UIView is not getting messaged with any of the touchesBegan, etc. messages. The MKMapView seems to be receiving all the messages still as zooming still occurs on a double click, etc. How ...

How do I determine if a coordinate is in the currently visible map region?

I have a list of several hundred locations and only want to display an MKPinAnnotation for those locations currently on the screen. The screen starts with the user's current location with a 2 mile radius. Of course, the user can scroll, and zoom on the screen. Right now, I wait for a map update event, and then loop through my location...

calloutAccessoryControlTapped not called/triggered

I have used this example in my application, http://spitzkoff.com/craig/?p=81 but its not calling/triggering the calloutAccessoryControlTapped as i tapped the accessorycontrol. Here is my code. - (void)viewDidLoad { MapAnnotation *annotation = nil; annotation = [[MapAnnotation alloc] initWithCoordinate:[[trackPointsArray objec...

Creating the Iphone MapKit showUserLocation Ring Annimation

Anyone know how of an approach to re-create the animation that mapkit uses on the showUserLocation ? Would you do it with a series of images or a single image that is then expanded and faded out? ...

Address Book and Map Kit

Here is the question. I am writing app for iPhone OS 3.0, where I want to use Map Kit and Address Book together. I have a database of places( restaurants, for example) with name, location, phone, address and some other data. I list them in table view and when I choose some place I want to show Address Book Contact(with the help of ABUnkn...

Problem in moving MKPinAnnotation on iPhone map

hello all I am building an app that tracks user location on map. I can insert a pin easily, but when the location is changed, the app quits. I have set the default coordinates to 0,0 in viewdidload: method and I have added a pin at that location. I have done this because I want to remove the pin when location is updated and then inser...

Wanted: How to reliably, consistently select an MKMapView annotation

After calling MKMapView's setCenterCoordinate:animated: method (without animation), I'd like to call selectAnnotation:animated: (with animation) so that the annotation pops out from the newly-centered pushpin. For now, I simply watch for mapViewDidFinishLoadingMap: and then select the annotation. However, this is problematic. For instan...

iPhone: Detecting Tap in MKMapView

How do I detect a single tap on an instance of MKMapView? Do I have to subclass MKMapView and then override the touchesEnded method? Thanks, -Chris ...

iPhone 3.0 MapKit -- providing routing between points

Is it possible to have the MapKit connect defined points using the Google Maps API type routing connections. ...

Problem adding multiple annotations to map.

Ok, so I’m having this problem. What I want to do is manually add multiple annotations to a map. When I add just one annotation, it works flawlessly. The pin drops, you can click on it to see its callout, life is good. The problem comes when I want to add more than one. When I add the second, suddenly the pin’s aren’t coloured correctly...