I want to make an app that partially mimics some of the behavior the standard map application has. This has proven difficult. First of all, I don't understand how you make annotations movable. How exactly do you do this?
Second: how do you search for locations?
Thanks
...
I'm trying to remove annotaenter code heretion some a MKMapView but am crashing on this line:
[self.mapView removeAnnotation:p];
p is an object that implements the MKAnnotation protocol and already has an annotation on that map.
This is the message I'm getting when I crash:
objc[46534]: FREED(id): message release sent to freed objec...
I know there are numerous questions about how to construct a sharedApplication link to the maps app specifying the start and end address with coordinates. I've got that working no problem.
Has anyone found a way to link with a source address generically specified as "current location".
I ask because the scenario I'm working on having ...
Hello,
I want to draw a route between 2 locations on the map.. something as a tour guide.When the tourist clicks another location i want to be able to draw the route as well as inform the distance from current location.
I am aware of sites on the internet which tell how to draw polylines on map. But,one such example had a preloaded .cs...
I am curious if anyone has worked to overlay element from Open Street Maps onto a UIMapView.
Maybe things like trails from Open Street Maps?
I know that the API allows you to grab xml for parts of the map. Has this been done before, and documented?
...
Hi all,
I have an mkmapview that i'm currently adding pins to, but for some reason when I call [mapView setRegion:[detailItem coordinateRegion] animated:YES]; the pin is off-centered (toward the right side of the screen) on the map. Here is the code for [deailItem coordinateRegion]:
- (MKCoordinateRegion)coordinateRegion {
MKCoord...
Hi,
I want to write some information in the navigation bar about a route..just as the default application does, like distance between the current location and the selected destination, direction etc.
How would i know when a certain pin is clicked as to provide the respective info.
Thanks in advance.
...
What does an MKAnnotation represent? Is it like notes on the map - like if you open up google map and click on little icons?
...
I've made a custom MKAnnotation class, MapLocation. I'm having no trouble setting or getting properties, except in this method to create an MKAnnotationView. I need to do it here, since it's supposed to look up a location type from the annotation's index and select one of a family of custom annotation images for the annotationView.
Afte...
I have a few questions about CoreLocation and GPS.
First, what method in core location is used to continually get the users current coordinates? And at what interval should these be retrieved?
Second, should these coordinates be pushed into a NSMutableArray each time they are received, so that the array of coordinates will represent...
Can I create an MKAnnotation, or is it read only? I have coordinates, but I am not finding it easy to manually create an MKAnnotation with using setCoordinate.
Ideas?
...
I have two views, the first view has an MKMapView on it named ridesMap. The second view is just a view with a UITableView in it. When you click the save button in the second view, it calls a method from the first view:
// Get my first views class
MyRidesMapViewController *rideMapView = [[MyRidesMapViewController alloc] init];
// Call ...
Here is my situation. For some reason my annotation coordinates that are saved in core data do not seem to match the coordinates that I can retrieve from the pins location on the map.
So, I save my data into core data using something like:
[ride setLatitude:[NSNumber numberWithDouble:newRidePlacemark.coordinate.latitude]];
[ride setLo...
In 3.1 I've been using an "offscreen" MKMapView to create map images that I can rotate, crop and so forth before presenting them the user. In 3.2 and 4.0 this technique no longer works quite right. Here's some code that illustrates the problem, followed by my theory.
// create map view
_mapView = [[MKMapView alloc] initWithF...
Hello.
I'm developing an iPhone application and I want to know the location on a MkMapView where the user has touch.
I have a MKMapView that fills the screen. When the user touch over the map, I need to know the location of the point the user has touched. Is that possible?
Thank you.
...
Hello.
I'm developing an iPhone application to search cities on a MKMapView. The user specify a city and then it show its location on a MKMapView. Is that possible?
Thanks.
...
for my app each annotation on a map corresponds to a mine locality. each mine has its own unique 7 digit integer identifier. I'm trying to add the property minesEntryNumber to the annotation so when the annotation is clicked on later I can bring up specific information on the selected annotation. This is part of my code:
for (id min...
Hi all,
Currently i am developing an iPhone application where i have to show user's current city and location for which i am using Mapkit Framework.When i build the application it works fine and show me the exact city details .But right now when i try to build the application again application shows following error message in my log
/...
Hi all,
I want to stop my app from loading more annotations after they are all added ( they are added by the user one by one), as the app otherwise crashes. How would you do that? the following code is what i think is important
(void) loadAndSortPOIs {
[poiArray release];
nextPoiIndex = 0;
NSString *poiPath = [[NSBundle mainBundle] ...
A followup to this quesiton:
http://stackoverflow.com/questions/2944581/forcing-reload-of-view-when-returning-from-flipsideview-of-utility-application
When returning from the flipside view, I'm calling
NSArray *annotations = [NSArray arrayWithArray:[mapView annotations]];
[mapView removeAnnotations:annotations];
To remove all the pi...