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
1
vote
1 answer

Display different images for every annotation on mapView in Swift

Working with MapKit and Swift, I am trying to display a number of annotations with each having a unique image to display in the leftCalloutAccessoryView. I am able to display annotations with different titles and subtitles; however, the image that…
jasenlew
  • 443
  • 1
  • 6
  • 7
1
vote
1 answer

MapKit in Swift, Part 3 - MKPointAnnotation, addAnnotations

I'm trying work with Map Kit in Swift. I try to display the area on the map, some pins (MKPointAnnotation) and the current position. I decided to extend the class MKPointAnnotation - add a category. Class MyAnnotation.swift: import UIKit import…
Alexey Nakhimov
  • 2,673
  • 8
  • 34
  • 49
1
vote
1 answer

MKPointAnnotation is overlaying my MKMapView

This is the problem and what i'm trying to achieve https://i.stack.imgur.com/XpDQn.jpg This is what i tried to achieve my goal https://i.stack.imgur.com/lF5hy.png and my didUpdateLocations delegate - (void)locationManager:(CLLocationManager…
Onur Var
  • 1,778
  • 1
  • 16
  • 16
1
vote
1 answer

json annotations not showing on mapview

I am trying to show information on a map from a json but nothing happens I think there is something missing so the information can be shown on the map Manage to get the json working and get information on the log, now I would like to know who to…
darkjuso
  • 39
  • 7
0
votes
1 answer

Set individual glyphtext for MKAnnotations

I want to create MKPointAnnotaion's with the identifier number in the annotation overlay instead of the pin. So a 1 for the first annotation, a 2 for the second annotation, etc. First, I added an MKPointAnnotation to the mapView based on a…
m_s
  • 37
  • 6
0
votes
0 answers

Problem with reverse geocoder and passing data between view controllers Xcode

I have a mapView in one view controller with an MKPointAnnotation. I've applied reverse Geocoder to get the street name from the coordinates and I'm trying to take that street name onto another view controller and place it into a label. But that…
0
votes
1 answer

My mapview hides a lot of annotation points, how do i force ALL points to show?

I have 200+ points on my map and they a lot of them are hidden upon runtime until zoom in is increased. Is there a boolean function or other to resolve this?
0
votes
1 answer

How to turn a MKPointAnnotation to a button?

Whenever a user taps on an MKPointAnnotation, I want him to be redirected to a specific view. My problem is how do I get the annotation to perform an action when tapped? Here is my code: for i in closestpharmacyname { var docref2 =…
0
votes
1 answer

How to add title under annotation?

I managed to make my annotations with a personalized image by annotation and the title in the popup. My question: Is it possible to also add the title below the annotation? Thank you in advance for your feedback. The view controller func mapView(_…
Marc75
  • 27
  • 5
0
votes
0 answers

Xcode mkpointannotation default font type and size

I am using various mkpointannotations and custom mkannotations in my map application. I want all of them to have uniform text but I can't figure out what the default font is for mkpointannotation. I have googled around and checked options click…
0
votes
1 answer

How to turn the arrow(image) so that it does not turn CalloutView

I need to turn the arrow on the map (customAnnotationView) so that the calloutView does not rotate (Example 1). When I rotate only the image: The arrows are not set in the center and of different sizes (Example 2). Example 1 Example 2 Example…
0
votes
1 answer

Setting the title of a MKPointAnnotation on creation when using MapKit

So, at the moment I can't seem to figure out how the user can enter a title on the Annotation pins. In my code a pin will appear after a long press on the map, but the title shown of the pin is "Pin". The only thing I would like to be able to do is…
JedetHe
  • 3
  • 5
0
votes
1 answer

Save MKPointAnnotation to Firestore

I have [mkmapview annotations] which is array of MKPointAnnotation I am trying to save ti to FireStore as array but is not accepted the MKPointAnnotation object then I try to convert MKPointAnnotation to FIRGeoPoint but no luck for…
0
votes
1 answer

Custom Images on multiple MKPointAnnotations

I'm trying to add different images on MKPointAnnotations. this is my code and its working fine when there is only one annotation. I'm facing problem to add different images on different annotations. func showDevices(Devs: Array){ …
Yasir Ghafar
  • 110
  • 8
0
votes
2 answers

I can't add more than one pin using MKPointAnnotation

I'm new in Xcode and I've never created an app for the iphone with the swift, so I still have a lot of trouble with this. In my app I want to open the map page and would like to appear a pin for every address I have. For this I created a json with…