Questions tagged [mkpointannotation]

MKPointAnnotation is a specific part of Apple's general MapKit system.

Apple's MapKit system in iOS generally allows developers to show real-world maps, GPS directions, and so on inside a UIView.

MKPointAnnotations are the small "speech bubble-like" annotations, which you can add to a MKMapItem, shown on a MapKit map.

99 questions
0
votes
1 answer

Could not cast value of type - Custom Point Annotation

On my MapViewController, I am able to successfully download all the records from CloudKit and place them in their locations as pins with (title and subtitle). When I tried to create thumbnail images for each pin when you click on it. I get the error…
ckraider
  • 335
  • 5
  • 19
0
votes
1 answer

Adding Image to the MKAnnotationViewClass (Changing Annotation Pin)

I've currently looked through the few tutorials on how to change the pin for the annotation. But all I've came across was nothing but errors within xcode 7 (Mainly all the breakpoints and it not working correctly). What I'm trying to do is use a…
0
votes
2 answers

Swift, how can I store a custom value for each dropped pin using MKPointAnnotation?

I want to be able to store a custom value for each dropped pin using MKPointAnnotation. Specifically, I want to store some id with each pin and retrieve at calloutAccesoryControlTapped.
Dan A
  • 209
  • 1
  • 3
  • 12
0
votes
1 answer

Fetch the title of map dropped pin via MKPointAnnotation

I need to know how to fetch the title of a dropped pin. I have multiple dropped pins on the map, when the pin is tabbed I want to fetch the title to pass to prepareForSegue. I use this statement "let title = self.pointAnnotation.title" via…
Sam M.
  • 1
  • 2
0
votes
1 answer

Storing Data in Annotation and Displaying on a Custom Callout but Data Changes to the Most Recent Update

So, I've created a custom callout that appears over the selected annotation. Everything works exactly how I want--the only problem is after I've dropped another pin of the same type, then all the past pins will display the same information. For…
0
votes
0 answers

MKMapView annotation tap on subview

I'm trying to implement an annotation with user picture, it works, but then, tap annotation recognition stops working. How can I delegate subview tap to map ? Here is my override function func mapView(mapView: MKMapView, viewForAnnotation…
GIJOW
  • 2,307
  • 1
  • 17
  • 37
0
votes
1 answer

100,000+ Annotations with MapKit

I'm writing a simple iOS App to map about 130,000 items. I took the raw data file and massaged each line to look like: array.append(class(latitude:46.222813, longitude:6.138866)) But when I try to copy 130,000 lines or even 25,000 at a time, Xcode…
Zonker.in.Geneva
  • 1,389
  • 11
  • 19
0
votes
0 answers

Passing data from one view to another

I'm trying to get data about a point annotation in a map view to display in another view whenever I click on the annotation's callout accessory. My problem is that I have no idea how to tell the new view which annotation was tapped because I have…
Trip Phillips
  • 430
  • 1
  • 5
  • 18
0
votes
1 answer

Getting a PFGeoPoint from Parse to create a point annotation

I'm trying to get saved GeoPoints from Parse in order to create point annotations that can be viewed in the map view. This is my current code: override func viewDidLoad() { super.viewDidLoad() var query = PFQuery(className:"SpotInfo") …
Trip Phillips
  • 430
  • 1
  • 5
  • 18
0
votes
1 answer

MKPointAnnotation show image in label

Can you help me with MKPointAnnotation? I would like to replace the annotation text with an image. For example, "1094_00_m.jpg" should display the image that corresponds with the filename rather than the filename. The image thumbnail will appear in…
0
votes
1 answer

How do click and drag MKPointAnnotation on Mac?

I'm using a MKMapView on OS X with a MKPointAnnotation based on my current coordinate. I'd like to be able to click and drag this pin annotation around, however clicking and dragging results in scrolling the mapview. I can't figure out any method…
strangetimes
  • 4,953
  • 1
  • 34
  • 62
0
votes
2 answers

swift: Move annotation from one coordinate to another

I have been trying to move annotation (custom) on map from one coordinate to another but couldn't find a better way to do it. I have searched online but couldn't find anything useful. Anyone who was successful in implementing such functionality (in…
Srujan Simha
  • 3,637
  • 8
  • 42
  • 59
0
votes
1 answer

Sending 'MKPointAnnotation *__strong' to parameter of incompatible type 'id'

I have a MKMapView. In this view I create some annotations. When the user clicks on the annotation disclosure button, I want to push to the detail view. When I create the annotation, I also fill a NSMutableDictionary to be able to grab the store…
nimrod
  • 5,595
  • 29
  • 85
  • 149
0
votes
1 answer

Selection is not working on MKPointAnnotation

Displays the interested location on map view which are multiple locations. MKPointAnnotation *annotation = [[MKPointAnnotation alloc] init]; annotation.coordinate = CLLocationCoordinate2DMake([[[[InterestedLocationsAry objectAtIndex:i]…
KkMIW
  • 1,092
  • 1
  • 17
  • 27
0
votes
2 answers

mkmapview automatically zoom to current user location when trying to zoom in to other locations

He is desperately waiting for the solution... I am displaying the current user location and some custom annotations, but, when I am trying to zoom in into the map my map automatically redirecting to the current location with default zoom that is…