mkmapview

Consolidate annotations on a zoomed MKMapView

There are a number of bad ways to go about what I want to do, but this seems like one of those cases of "there must be a better way". I am using an MKMapView in an iPhone app that displays a number of annotations. Pretend for conceptual discussion that each town in a US state has an annotation, so there's a fairly dense pile of annotati...

MKMapView: Get clicked event on annotation pin

Hi, I am using a m MKMapView containing a couple of MKAnnotation pins. Above the map I am showing a UITable with detailed information of the MKAnnotation pins. My problem: When i select a pin , i would like to select the corresponding table cell. For this I would like to catch a event/delegate if the pin is selected. I am not talking a...

iphone: Drawing over MKMapView?

Hi guys I'm attempting to draw polygons on a mapView. What I did was to add a transparent view on the main view, that matches the bounds of the mapView, and I draw over it. When I move the table it's ok, but when I zoom in and out the polygones 'bounce' on the Y axis (latitude) but the x axis is ok. What do you think? BTW I tried to a...

Using MKAnnotationView without MKMapView?

I'm wondering if it's possible to use the MKAnnotationView inside a UIView other than MKMapView? I'm trying to find an alternative to using the undocumented UICalloutView class. I can create the MKAnnotationView and add it to my view, but I can't get it to show. ...

iphone sdk: I have a Quartz Drawing problem

Hi guys, I have a view (MKMapView) and on it I've a transparent view on which I draw different things. Now I would like to give the user the option to erase things so that the "background view" (the mapView) will be seen in the erased places. Do you think it's possible? Thanks ...

Adding subview to MKMapView that's above the map but below the annotation views?

For an app I'm building, I have a custom "old map" effect PNG that I'd like to overlay on the MKMapView view. Unfortunately, neither way I've tried to do this is exactly right: Add a subview to the MKMapView (issue: the UIImageView for the PNG gets placed above the Annotation pins, which looks weird Make the image an annotation view it...

How to scale icons by zoom in a MKMapView?

How can I have the size of my icons scale with zoom in a MKMapView? As far as I can tell there is no way to do this? The only thing I can think of is to have the MKMapView a subview of some UIView, and catch all of the user input in this parent view, scale the images on zoom and relay to the subview. ...

Is there way to limit MKMapView maximum zoom level?

Hello all, the question is - is there a way to limit maximum zoom level for MKMapView? Or is there a way to track when user zooms to the level where there's no map image available? ...

Is MKMapViewDelegate calloutAccessoryControlTapped broken?

I'm using the MapKit part of the iPhone SDK. According to the MKMapViewDelegate documentation the calloutAccessory event should handle taps on the annotation view. This works just fine as long as the callout view is a UIButton. I've tried to get it to work for a UISegmentedControl but I can't seem to get the event to fire. (void)mapVie...

Search and display buisness locations on MKMapView

Hello, I'm trying to find a way to search for a business, such as "grocery stores" and display them on a google map around the users current location. This used to be pretty simple with the old URL style of launching the apple map location but I can't find out how to do it with the MKMapView. I understand that I'll need to use the MKA...

how to get Region using Specified string in GoogleMaps in Iphone?

Hi, In my iphone application i am using MKMapView to display any region(i.e Australia) and it is working fine using coordinates(latitude and longitude).But i want to display the region based on the string (i.e Australia) instead of the coordinates. Lets say i click on the TableView with named string as "Australia" and in the next view i...

why search field in not displayed at the Iphone MKMapView?

Hi, In My application i am using MKMapview to display the googleMap,but it is not displaying the search field in the Map. I have downloaded the Maps application from the Appstore in my real device and which is disaplying the seach field in the map. can any body have any solution for displaying the search field in the Existing Map, as i...

how to navigate application using MKMap View in Iphone?

Hi, In my iphone application i have used MK MapView to navigate from different pages. But when the MKMapView controll run at that time the the control is not going back again in the application.so i am loosing the application flow,and i have to run the application again. /* [[UIApplication sharedApplication] openURL:[NSURL URLWithStri...

On the iphone, how do I add a location to the maps application?

Is there a way to add a location from an MKMapView in my application to the built-in Google Maps app? From what I understand there is probably one of two ways to do it: using [[UIApplication sharedApplication] openURL:xxx] (like opening a web address, writing an email, or dialling a number) or using a C-api like adding a contact to the ...

Search MKMapView annotations

I've got several MKAnnotationView red push pins on a MKMapView in my iPhone application on several locations. I'd like to implement a search bar that can move the map region to show these pins. How can I do this? Alternatively, the area I'm concerned about already has text labels built into the google map, so I'm wondering if there's a ...

How to avoid MKMapKit Related Crashes on the iPhone

So, for the past few days I have been struggling to understand how to implement a simple MKMapView with some custom annotations without crashing my application in the process. Unfortunately I have been unable to determine what I'm doing wrong and am becoming increasingly frustrated in the process. What I'm trying to accomplish should be...

Refresh MKAnnotationView on a MKMapView

I'd like to a-synchronically load images for my custom MKAnnotationView; I'm already using the EGOImageView-framework (it goes very well with UITableViews), but I fail to make it work on MKMapView. Images seem to be loaded, but I cannot refresh them on the map - [myMap setNeedsDisplay] does nothing. ...

How to simulate a user driving a route in a MKMapView?

I need to simulate how my application will look when a user is driving around for a demo. I have a MKMapView, how can I simulate the look of a user driving around which will use the map.userLocation functionality, which obviously will not be available in the demo. Thanks! ...

Animating custom callout for MKAnnotationView in MKMapView with "pop in" effect

I finally managed to put together a custom callout UIView that gets shown when a MKAnnotationView is tapped. I did this by overriding - (void)setSelected:(BOOL)selected animated:(BOOL)animated; in my custom MKAnnotationView subclass. Note: I prevented the main callout from showing by setting the canShowCallout property to NO. I'd ...

MKMapView disposal

Hello, I have a strange(?) crash after releasing MKMapView. MKMapView is a subview in my view controller and after I remove that view from navigation stack and release it application crashes with this stack: ... #4 0x34196dc8 in -[MKMapView(UserPositioningInternal) locationManagerFailedToUpdateLocation:withError:] #5 0x3417030c in -[M...