mkannotation Questions
6
Solved
I have a MKMapView. I added a UITapGestureRecognizer with a single tap.
I now want to add a MKAnnotationView to the map. I can tap the annotation and mapView:mapView didSelectAnnotationView:view f...
Papeete asked 19/6, 2013 at 20:41
6
is there a way to update (i.e. moving around) a MKOverlay that is already added to the MKMapView. Removing a old one and adding a new one is terrible (slow).
i.e i would like to trigger the backgr...
Geoid asked 22/7, 2010 at 9:12
3
Solved
My code worked fine from iOS 7 to 8. With the update yesterday the custom images on my pins were replaced by the standard pin image.
Any suggestions?
My code:
extension ViewController: MKMapViewD...
Rosalbarosalee asked 17/9, 2015 at 14:52
5
Solved
So I have a MKMapView with all my pins added, and the colour of the pin is dependent on whether a value is set for that pin. When I first load the app, viewForAnnotation is called and the colours a...
Nw asked 27/5, 2012 at 12:31
3
Solved
On my iPad app I am using iOS map to display few points using annotation. I want to display custom callout too when an annotation is been selected. I am using UIPopoverController to show callout. H...
Logician asked 20/5, 2014 at 12:46
5
I am adding multiple annotations programmatically like this:
- (void)addAnnotations{
NSInteger i;
CLLocationCoordinate2D location;
for ( i = 0 ; i < [storeLatitude count] ; i ++ ){
locatio...
Morbihan asked 5/7, 2012 at 9:46
2
Solved
First, my code is perfectly running.
I have well set up and mapView.register my annotation markers and cluster.
When I zoom out the annotations fusion as expected in my cluster views,
when I zoom ...
Blairblaire asked 19/10, 2017 at 10:0
3
Solved
I need to count number of annotations when i zooming mapView, and get array with which are shown on map,
and then, i need to reload my Table and show list of only which shown on map.
How can i ge...
Jaal asked 13/8, 2013 at 7:26
1
Solved
I'm trying to draw an annotation exactly as in a 'live' MapView, but then in a MKSnapshot. Why an MKSnapshot > because I want to have non-interactive MapViews in a UITableView and using images is m...
Florist asked 6/3, 2018 at 16:51
2
Solved
How can we ensure that the annotation views are placed in a specified order/ position on the map?
I have a case where a single address can have multiple annotations (on top of each other). For exa...
Sympathizer asked 26/12, 2014 at 10:49
2
On iOS11 the zPosition stopped working for the annotationView.layer. Every time the map region changes.
No luck with original solution: layer.zPosition = X;
No luck with bringViewToFront/SendVi...
Mendie asked 2/10, 2017 at 2:20
6
Solved
I have latitude and long values and I need to be able to drop a pin at this location.
Can anybody provide some advice on how to go about this?
Alcock asked 18/9, 2011 at 6:10
3
I'm wondering if any of you knows a method (library, category, etc.) to cluster iOS MapAnnotations if there are many of them at the same location (e.g. 4 pieces in about 10m).
It doesn't matter to...
Titleholder asked 30/3, 2013 at 16:39
2
Solved
I'm trying to display the annotation title automatically instead of displaying it on tap. I used the below code to display annotation and make it center on map.
self.ann.setCoordinate(currentLocat...
Cordiform asked 28/1, 2015 at 17:0
2
Solved
I want to open up the callout for an MKPinAnnotationView programmatically. Eg I drop 10 pins on the map, and want to open up the one closest to me. How would I go about doing this?
Apple has speci...
Footle asked 3/2, 2010 at 17:16
6
Solved
I am using custom call out (title and subtitle)for Current location icon. I tried following to disable default annotation but it does not work.
- (MKAnnotationView *) mapView:(MKMapView *)mapView ...
Insolvable asked 9/12, 2011 at 8:22
3
Solved
I'm trying to add MKAnnotationView to MKMapView but I can't do it… Can anyone help me?
Here is my code:
override func viewDidLoad() {
super.viewDidLoad()
locationManager.desiredAccuracy = kCLLo...
Objectionable asked 28/6, 2014 at 13:43
7
Solved
I would like to remove all annotations from my mapview without the blue dot of my position. When I call:
[mapView removeAnnotations:mapView.annotations];
all annotations are removed.
In which w...
Pruitt asked 25/1, 2010 at 12:26
3
Solved
I want to display an image in my MKMapView instead of little rock pin.
Can someone please put some helpful code here, or tell the way how to do it?
-(MKAnnotationView *)mapView:(MKMapView *)mV vi...
Comrade asked 22/3, 2012 at 0:48
4
Solved
I have 2 annotations to display on the mapview, but unable to set the maprect to show all of them on screen without requiring users to zoom out.
I tried with showAnnotations but no luck. Anyone h...
Fowlkes asked 26/1, 2015 at 16:51
2
In my app I have custom annotations where the leftCalloutAccessoryView is a circular UIView. This works perfectly in the simulator with this code:
let rideTimeView = UIView()
rideTimeView.frame ...
Truman asked 17/8, 2015 at 23:21
2
Solved
After setting mapView.showsUserLocation to true, is it possible to receive location updates without showing the MKUserLocation bubble? Returning nil in mapView:viewForAnnotation: simply shows the b...
Rafael asked 14/3, 2012 at 23:25
3
Solved
I have a list of annotations (MKPointAnnotation). I have a UIViewController which is for the whole view, MKMapView implementing Controller, which I thought is useful for detecting the users interac...
Preston asked 8/3, 2013 at 10:54
1
Solved
I am working on a project where I need to create a similar iOS application to UBER and OLA where the car is moving based on the location. I'm looking for some kind of Library which can make Cars mo...
Kopeisk asked 17/11, 2016 at 8:53
1
Solved
In my swift application I'm using MapKit and I'm adding some annotations to the map.
Currently, thanks to this question: Trying to get the span size in meters for an iOS MKCoordinateSpan I manage...
Zoril asked 23/10, 2016 at 18:7
© 2022 - 2024 — McMap. All rights reserved.