mkmapview Questions

2

Solved

I'm attempting to use the MKMapView. I've succeeded in making the world map appear. However, I can't seem to change the region: I have a button that will perform this: NSLog(@"%f, %f, %f, %f, map...
Sausage asked 18/8, 2011 at 5:6

7

Solved

I have two UITextFields which users can enter in a latitude and longitude, these co-ordinates are then used to create a pin on an MKMapView. I want find a way to validate whether the values they e...
Rodenticide asked 15/10, 2011 at 22:8

4

Help needed now. I can draw lines with MKPolyline and MKPolylineView, but how to draw an arc or curve lines between two coordinates on the MKMapView? Great thanks.
Rappel asked 15/4, 2011 at 6:53

5

Solved

I'm trying to figure out how to put an annotation on a map based on where the user touches. I have tried sub-classing the MKMapView and looked for the touchesBegan to fire but as it turns out, MK...
Dracaena asked 20/6, 2010 at 17:23

3

I have a map in a view that is centered on Chicago. I want the user to be able to place a pin/annotation on the map and then retrieve those coordinates. The map loads Chicago fine but I can't get t...
Dodona asked 4/12, 2019 at 18:26

7

I have a mapview where the annotation's coordinates are constantly being updated but when I use setCoordinate, the annotation does not move. How do I refresh the annotations to reflect their coordi...

11

Solved

I wonder if anyone know how you move the legal sign on a mapview, right now my toolbar is covering it. Does anyone know how? There is lot's of help with the google logo but nothing on the apple map...
Abolish asked 2/11, 2012 at 19:17

6

Solved

I'm trying to update an MKMapView by removing all annotations outside the visible area, and adding and removing some annotations inside the visible area. This is my code: NSSet *visibleAnnotations...
Dentate asked 24/1, 2012 at 10:13

8

Solved

I use removeAnnotations to remove my annotations from mapView but same it remove user location ann. How can I prevent this, or how to get user ann back to view? NSArray *annotationsOnMap = mapView...
Safier asked 2/6, 2012 at 19:3

3

Solved

If I have a MKMapView and a CLLocationCoordinate2D how do you test whether the map's visible area contains the coordinate?
Preoccupancy asked 26/4, 2013 at 14:57

3

Is it possible to open simultaneously more then one callout? The code: - (void)mapViewDidFinishLoadingMap:(MKMapView *)theMapView { for (id<MKAnnotation> currentAnnotation in theMapView.an...
Echinoderm asked 10/3, 2010 at 15:10

4

Solved

The Maps app in iOS 10 now includes a heading direction arrow on top of the MKUserLocation MKAnnotationView. Is there some way I can add this to MKMapView in my own apps? Edit: I'd be happy to d...
Fidgety asked 29/9, 2016 at 6:16

3

I need some code which can be used outside of the mk* functions. I need to run my custom function to bring the FIRST and LAST markers in an array to the front. (so on top of all the other markers o...
Alluvium asked 14/9, 2010 at 21:56

1

I need to display pins ( annotations ) on a map. Then draw polygon lines from pin to pin ( annotation to annotation ) I receive an array of Doubles that I convert to CLLocationCoordiante2D. the fi...
Suzerainty asked 18/9, 2019 at 21:42

8

Solved

How do I detect a single tap on an instance of MKMapView? Do I have to subclass MKMapView and then override the touchesEnded method? Thanks, -Chris
Heirdom asked 14/8, 2009 at 2:22

7

I recently started learning objectiveC and started developing an app in iOS6. Now, I am trying to convert it for iOS7 and facing issues with MKMap. In iOS6, I was using viewForOverlay. In iOS7,...
Indomitability asked 20/9, 2013 at 0:12

2

Solved

Can someone tell me how can I draw a GeoJson file as an overlay in apple maps? I want a complete example, I have the shapes as Polygons or MultiPolygons? This file Countries GeoJSON is enough for ...
Obannon asked 2/4, 2014 at 21:47

3

I've been looking for a solution to zooming a MapView in to fit the boundaries of an MKPolyline in Swift. I have been able to locate example code for Objective-C here on SO, but I'm not at all fami...
Tidings asked 16/4, 2015 at 13:53

3

Solved

Program crashes when set location coordinates using MKMapView. Log: Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Invalid Region <center:+112.57075000, +37....
Ruffi asked 27/10, 2012 at 12:35

4

Solved

I'm practicing and reading up on SwiftUI and I am starting off by making a simple app where you can type a location into a TextField View from swiftUI and then on enter the mkmapview within SwiftUI...
Troostite asked 6/6, 2019 at 4:16

4

Solved

I am trying to plot a MKPolygon on a MKMapView in iOS 4.0. I have an NSArray which contains custom objects that include properties for latitude/longitude. I have a code sample below: - (void)viewD...
Lifetime asked 29/3, 2011 at 14:38

10

In order to setup a query to an external server I want to get the bounds of the current Map View in an iPhone app I'm building. UIView should respond to bounds but it seems MKMapView doesn't. After...
Meshed asked 17/1, 2010 at 16:53

1

Solved

before duplicating my questing please read the whole thing. i am using MkMapKit in my app and now I have to show people in cluster when zoom out the map, I have achieved numbering them out so far u...
Mcinnis asked 26/5, 2019 at 8:19

5

Solved

I want to know the current zoom level of MKMapView in iphone programming, how can I do that? Actually I have one app, that is taking few arguments(Radius from center to corner of MKMapView) are ret...
Farah asked 29/9, 2011 at 8:57

5

Solved

I have a view controller with an MKMapView that calls [self.mapView setRegion:region animated:YES]; which repositions the map from A to B. The view controller which holds the MKMapView is set...
Disburse asked 1/9, 2011 at 10:53

© 2022 - 2024 — McMap. All rights reserved.