mkannotation Questions

6

Solved

The annotation pin is draggable but I couldn't drop it to the destination location. The problem is how could I get the destination location's coordinate where i drop the annotation pin? Any method ...
Disorderly asked 24/5, 2012 at 8:11

2

Solved

I have a UITapGestureRecognizer setup to add an annotation onto the map where the user clicks. The problem I'm running into is when the user taps an existing annotation to view the tooltip, the too...
Weepy asked 5/2, 2014 at 22:9

2

Solved

UPDATE 2: Here is the existing code within maps, but it is like the annotations get all out of order with the pins. One time a pin will be green, the next time I run it, the same pin is red. Where...
Donavon asked 30/8, 2016 at 19:20

5

I appreciate the question might seem odd but basically I am adding annotations to the map after pulling coordinates from a backend database. The amount of annotations being added vary depending on ...
Shuster asked 29/8, 2016 at 11:11

4

Solved

When I try to conform MKAnnotation protocol it throw error my class does not conform to protocol MKAnnotation. I am using the following code import MapKit import Foundation class MyAnnotation: NS...
Piscine asked 27/3, 2015 at 12:21

3

I have created an annotation which I'm adding to an MKMapView. How would I go about having a custom image instead of the standard red pin? @interface AddressAnnotation : NSObject<MKAnnotation&g...
Durrace asked 18/9, 2011 at 12:18

0

I am new to iOS development and currently using the FBAnnotationClusteringSwift to cluster makers. My app needs to have two annotations which will not be clustered, as they indicate the source and ...
Bifrost asked 10/6, 2016 at 11:41

1

Solved

Does Mapkit on IOS support dequeuing of overlays? (like it does annotations). If so what is the code for achieving this? Background: With annotations I believe you can add many, leaving MapKit to...
Breadth asked 16/5, 2016 at 6:24

6

Solved

I am just getting into Obj C, and I am looking to create an array of MKAnnotations. I have already created the MKAnnotation class called TruckLocation that contains the name, description, latitud...
Washerwoman asked 3/9, 2013 at 20:8

1

Solved

How should the array below be set. Im trying to add multiple annotations onto my map. I was able to find the code below on stackoverflow but they did not show how to set up the array. var objects ...
Muticous asked 16/4, 2016 at 16:52

1

Solved

I am developing an app which use MKMapView. I have display multiple annotation in it. Now I want to display custom annotation image for pin. I have made custom class for MapViewAnnotation. #import...
Flood asked 26/2, 2016 at 9:24

4

Solved

I have a custom annotation view on the map, which has a UIButton in it, but the UIButton is not responsive when pressed. I have two main problems with user interaction on the annotation view: But...
Orography asked 28/7, 2011 at 17:10

1

Solved

I've got a custom MKAnnotation set up class Location: NSObject, MKAnnotation { var id: Int var title: String? var name: String var coordinate: CLLocationCoordinate2D { didSet{ didChangeVal...
Schlock asked 26/12, 2015 at 21:19

1

Solved

I'm trying to use an MKOverlay (specifically an MKPolyline) to show a route on the map. However, I need the route to show up above my existing pins (custom MKAnnotationViews). Is there a good way t...
Clothespress asked 20/10, 2015 at 15:34

4

Solved

I have a MKMap with a series of MKAnnotations, all of which are red which is fine. I have selected "show user location" in IB and to change the MKAnnotation from red to blue, I have the code in my ...
Wolfsbane asked 1/2, 2012 at 9:46

2

I am currently working on adding cluster annotations to my map view. Everything is working fine with the exception of a couple of things. First of all, I need to refresh the annotations on the map ...
Heliocentric asked 27/7, 2015 at 19:50

4

Solved

So I'm pretty new to Xcode and Objective-C. I have several ArtPiece objects with various attributes stored in an array. I then add them as MKAnnotations to the mapview. What I need to be able to do...
Bayberry asked 9/5, 2011 at 15:41

1

Solved

When using MapKit in iOS 8 in Swift, how do I make it possible to animate a change in the map position of a custom annotation? I am saying this: UIView.animateWithDuration(0.25) { var loc = ann.c...
Preserve asked 21/4, 2015 at 15:24

4

I would like to allow the user of my app to pick a location in the map. The native map has a "drop pin" feature where you can locate something by dropping a pin. How can I do this in MapKit?
Bolo asked 16/12, 2009 at 20:18

2

Solved

I have a map and a set of annotations, each with a 'parent' property. Currently when I add annotations I implement the didAddAnnotationViews method to animate those annotations so they appear to co...
Southeast asked 19/12, 2011 at 16:5

3

Solved

Any suggestions on what is wrong with the following would be appreciated. I am adding a custom image to an annotation using the following code. - (MKAnnotationView *)mapView:(MKMapView *)mapView...
Sovereign asked 1/3, 2011 at 6:53

3

Solved

It works great on iOS 7 but UIImageView's position shifts on iO8 like images below. Also rightCalloutAccessoryView position shifts top-right corner. Can anybody help? Cheers. In iOS 7 In iOS...
Fertile asked 21/9, 2014 at 10:13

2

Solved

I need to create a map view interface, which is something similar to the OLA Cabs Application in iOS. What I exactly wanna do is to fix an overlay on mapView and allow the user to scroll the map vi...
Stain asked 10/12, 2014 at 6:34

2

Solved

I am displaying a custom UIView when the user clicks on the pin (Like the Zillow app). Now the problem is that I need to place the view right above the actual pin. The MKAnnotationView coordinates ...
Chemiluminescence asked 10/7, 2012 at 20:51

1

Solved

I want to display different colour pins in a UIMapView based on the relative time they represent but it seems the mapView:viewForAnnotation: method only does it's thing independent of when its call...
Leotie asked 13/6, 2014 at 23:48

© 2022 - 2024 — McMap. All rights reserved.