How to add an UIButton to a MKAnnotation (MKView)?
Hey, I want to add a click able button to a MKAnnotation as seen in this screenshot of the Maps application: ...
Hey, I want to add a click able button to a MKAnnotation as seen in this screenshot of the Maps application: ...
Aaaarg... ok, let's calm myself. Did someone have any problem with setting the region of a MKMapView ? It never worked with me. This code : -(void)setUserCenteredSpan:(MKCoordinateSpan)span{ // for this example, span = {0.5, 0.5} // Current region (just initialised) NSLog(@"%f, %f - %f, %f", self.region.center.latitude, sel...
Hi all, I've recently come across this website and I've been trying to add to my call out view a button (from a image). The code on the websites example works just fine, but when I tried to add in the same code to my project I'm not getting the same results. There is obviously something I've missed but I cannot seem to work this one o...
Hi, Has anyone been able to intercept touches on MKMapView in order to pan in exactly the opposite direction the user flicks their finger? Thanks! Flyx ...
Hey, My app knows the current user position (CoreLocation.framework). As soon as the user opens a new MapView his iPhone starts searching for the current position again. Is it possible to skip that or to change the first user position for mkMapView? Edit: Is it possible to overwrite MKMapView and use an other LocationManager? ...
Anyone know of a way to change the colors of a MKMapView? Is there a way to XOR an image over or blend one that you could "possibly" create a "night version" of the map that isn't so bright? Thanks! Dan ...
I'm attempting to talk to a web service for locations within the zoomed-in or zoomed-out area on an embedded MKMapView. In the regionDidChangeAnimated method of my view controller (this is the method that I use to trap any user gesture on the map), I call the following: NSLog( @"latitude delta = %f", mapView.region.span.latitudeDelta );...
In a nutshell, I am trying to figure out how to scale the geometry (point, line, and polygon) implemented in a custom view (geometryView) on top of MKMapView (mapView). What I did was.. Create DrawMapViewController. Add the UIBarButtonItems (MAP, PT, LN, PG) on the bottom toolbar. When you click on map button, you are able to pan/...
I found that the Google Maps API supports Directions through: var map; var directionsPanel; var directions; function initialize() { map = new GMap2(document.getElementById("map_canvas")); directionsPanel = document.getElementById("my_textual_div"); map.setCenter(new GLatLng(49.496675,-102.65625), 3); directions = new GDirection...
I use the loop below to populate my MapView. However it always shows only one pin at a time, no matter how many iterations i do. Individually declaring items doesn't seem to have an impact either. I'm using the initial 3.0 SDK with xCode 3.1.3 on osx 10.5.8, The 3.1 SDK changelog didn't make any mention of any fixes to the MKMapKit f...
Hi! i recently faced a interesting issue in creating a app on iphone with a map view. the data provided to me have have some items having same or nearly same lat and lng. So while plotting them either they overlap or are so close that i have to zoom to a greater extend to click on them. i check all the apps with map on them and found a...
I'm trying to add an image behind a MKPinAnnotationView. Seems like it should be rather easy to just do this in here: - (void)mapView:(MKMapView *)mapView didAddAnnotationViews:(NSArray *)views { for (MKAnnotationView *aView in views) [[aView superview] addSubview:imageView]; } But the problem I am having in doing that is that the ...
Is it possible to have our own UILabel or some other type of text instead of the default pin in MapKit map on iPhone? ...
I have an MKMapView that I am considering rotating in order to more conveniently display a series of Annotations to my users. As of now I am planning on simply rotating the entire view with a CGAffineTransform, but I wanted to know if anyone had any experience with MKMapView rotation. Are there any pitfalls or "gotchas" that you came...
How do I replace the black popup bubble with a custom view when clicking an annotation? ...
i want to display a map using two location in which one updates continously.and also i want to show custom pin icon in map view ...
Hello all . I am developing an iPhone application in which I have a page in which I am using scrollview mkmapview and webview all at once in the control of a segmented control. I am doing it confortablly . My question is that I want to show border or frame outside this frames. How can I do so ? ...
I want to use MKMapView with UITabbarController. I havent any problems with other viewController application. But if i use MKMapView with UITabBarController, MKMapView IBOutlet throws NSUnknownKeyException with message "this class is not key value coding-compliant for the key xxxx" If i delete IBOutlet from my code and IB then applicatio...
I have a simple mapview that has the following viewdidload method and didupdate to location: - (void)viewDidLoad { NSLog(@"in view did load"); [super viewDidLoad]; self.mapView.showsUserLocation = YES; self.put_url = nil; locationManager = [[CLLocationManager alloc] init]; [locationManager setDesiredAccuracy:kC...
I have an app at the moment which shows various pins on a map. I've tried setting mapView.showsUserLocation = YES; to show the user's current pos, however this crashed my app ("Program received signal: SIGABRT") with the following error message: Mon Oct 19 12:31:27 unknown Hull Ads[3111] <Error>: *** -[MKUserLocation counter]: unrecogni...