Questions tagged [mkmapviewdelegate]

MKMapViewDelegate is a protocol that describes events originating from an MKMapView.

MKMapViewDelegate is a protocol that describes events originating from an MKMapView. Interested classes can get messages for changes to the map's annotations, overlays, visible region, and user location updates.

For more information, see the Apple Documentation for MKMapViewDelegate.

160 questions
1
vote
1 answer

Swift: MKMapView annotation appears in top left corner after a didDeselectAnnotationView call

I'm drawing a MKMapView in my iOS app, and on this map are some annotations, with custom images representing them. The image changes slightly (has a glow) when a specific annotation is selected. To do this, I'm using the mapView(mapView:…
fanfan
  • 504
  • 1
  • 4
  • 13
1
vote
0 answers

Cust annotation view required Double Tap to open detail aanotation view when Call out view Display

**Here First, We create custom Annotation view which contain image, button and other information. We put onto the Map as a image marker.Here we also hide Call out view. Second condition only contain map marker image and display Call out view. Right…
iOS Dev
  • 115
  • 7
1
vote
0 answers

How to load multiple annotation titles without freezing the application in iOS

Hi i am working in my first application. plz find the below code and help me out in this. When i am loading the map i am loading all the annotations in map but when i drag the map near to more annotations app is Freezing for some time based on…
1
vote
2 answers

MapKit - Swift Example

I'm trying work with MapKit in Swift. I need to show the area of ​​the map the current User Location and point of interest next to it, however these points of interest must have a different pattern of visualization User itself. I know that there is…
Gabriel
  • 15
  • 1
  • 3
1
vote
1 answer

Exceptional behaviour of mapkit delegate

I'm experiencing exceptional behaviour from MapKit delegate -(MKAnnotationView *)mapView:(MKMapView *)mapView viewForAnnotation (id)annotation { MKAnnotationView *annotationView=[mapView viewForAnnotation:annotation]; return…
1
vote
0 answers

Mapview. Callback like zoomDidChange

I want get callback, always then map did change zooming. I try use - (void)mapView:(MKMapView *)mapView regionDidChangeAnimated:(BOOL)animated; But it callback, when change is significant.
Rubinc
  • 125
  • 6
1
vote
1 answer

While implementing mapView i am getting error

Undefined symbols for architecture i386: "_OBJC_CLASS_$_MKMapView" Undefined symbols for architecture i386: "_OBJC_CLASS_$_MKMapView"
user2918674
1
vote
2 answers

When added "MapKit/MapKit.h" Getting error "Undefined symbols for architecture i386:"

To implement mapView i tried adding <#import and MKMapViewDelegate and tried And Here is my code: - (void)viewDidLoad { mapView = [[MKMapView alloc]initWithFrame:CGRectMake(0, 0, 320, self.view.frame.size.height - 90)]; …
1
vote
1 answer

MKMapView Region

I have a question regarding setting the region on my MKMapView. I need to set the mapview to display a specific region when my view first loads. The north east and south west latitude and longitude of this region is: North East Coordinate…
Mick Walker
  • 3,862
  • 6
  • 47
  • 72
1
vote
1 answer

zoomScale after resizing a MKMapView is not equal to zoomScale when draw MKOverlay

I have an app, that uses MapKit. I calculate current zoom after resizing a map. By define (from MKGeometry.h file) MKZoomScale provides a conversion factor between MKMapPoints and screen points. When MKZoomScale = 1, 1 screen point = 1 MKMapPoint. …
Anastasia
  • 3,024
  • 1
  • 23
  • 34
1
vote
2 answers

MKMapView - cant locate user location while AirPlane mode is on

I'm developing with MKMapView class, When running on the device (iPhone5) and with AirPlane mode ON , Wi-Fi ON, and the property of MKMapView:showsUserLocationsetting to YES,the delegate of MKMapView - (void)mapView:(MKMapView *)mapView…
Johnny
  • 2,589
  • 2
  • 27
  • 34
1
vote
1 answer

Add a subview to MKMapView (not an overlay)

I want to add a small subview at tap point on an iOS map view in such a way that added subview also zooms and scrolls when I scroll and zoom the map view. Any help? The code I have tried is below: - (void)viewDidLoad { UITapGestureRecognizer…
anoop
  • 481
  • 4
  • 7
1
vote
1 answer

willselectAnnotationView missing

In the MKMapViewDelegate, the code in the method mapView:didSelectAnnotationView is executed AFTER the selection of the annotation view (and therefore after the callout bubble appears). BUT I need to execute some code BEFORE the callout bubble…
0
votes
1 answer

ZoomIn for Mapview

Mapview should launching in zoomin mode for particular pin. how can we do that programatically. any delegate methods are there for that.
0
votes
1 answer

Map view refresh in iPhone app

I am using map functionality in my iphone app. I m showing stores for users current location on map. Whenever user scrolls the map he needs to be shown stores of new location. eg. suppose user at New York at first app will show New York stores but…
Swapnil
  • 1,858
  • 2
  • 22
  • 49