mapkit Questions

4

Solved

Im creating this app, and it needs to get the users location - its all working properly, the thing is, that the time from accepting the use of location services, to getting the actual location take...
Agitator asked 15/2, 2017 at 9:36

3

Solved

Hi i have an MapView in My Project i need to remove all the labels Annotations, places from MapView. Looks like Plain mapView i tried the Following Code its working fine but still i getting some b...
Parka asked 18/6, 2018 at 9:9

4

Solved

I have a search bar in my application that the user can type an address into, and it will come up with the geocoded result. The result updates as the user types, according to the following code: -...
Pavonine asked 25/7, 2013 at 19:47

4

I am using MapKit to show two annotations and distance between them. Everything works fine but I keep getting this error on the console. MobileGestalt.c:1647: Could not retrieve region info Anybod...
Madson asked 9/11, 2019 at 23:30

1

I have implemented a slightly changed version of the Apple SwiftUI tutorial using MapKit. When I run it I get the error message and resize the corresponding view I get: [SwiftUI] NSHostingView is b...
Housekeeper asked 29/8, 2020 at 12:25

2

Solved

I put the personal image instead of the traditional red pin. When I open the map to display the pin, the image cover the entire map. Is there a maximum size of the pin image or how do I integrate s...
Stoa asked 21/10, 2015 at 15:1

7

Solved

I am building an iOS app using storyboards and Google Maps. Using iOS6 My application features the split view navigation as seen in the facebook app On my left view I am selecting an item in a l...
Squeamish asked 17/4, 2013 at 18:36

4

Solved

I can't figure out how to get the map to zoom in on the user location from viewDidLoad. I tried setting a region, and that didn't work. This is the code I have, any tips? @IBOutlet weak var mapVi...
Simmers asked 25/6, 2015 at 3:22

3

I've created a map with a ton of pins all over it, and tapping a pin pops up the default "bubble" and that's fine, for now. What I would really like to do is not pop up the bubble at all and inste...
Zn asked 16/5, 2016 at 5:25

9

Solved

I need to draw the current user annotation (the blue dot) on top of all other annotations. Right now it is getting drawn underneath my other annotations and getting hidden. I'd like to adjust the z...
Puebla asked 22/8, 2011 at 1:30

5

I have the swift code below that draws a polygon and drops an annotation on MKMapView. I am trying to figure out how i could identify if the annotation's coordinate is within the polygon? import U...
Mink asked 17/7, 2015 at 6:45

3

At this moment, I am trying to figure out whether a coordinate on a MKMapView is within a MKPolygon drawn out ahead of time with latitudes/longitudes. I am using CGPathContainsPoint to determine ...
Demetrius asked 21/8, 2015 at 20:50

7

Solved

I have a custom MKAnnotationView where I set my image myself in viewForAnnotation. How do I animate it's drop like I can with MKPinAnnotationView? My code is - (MKAnnotationView *)mapView:(MKMapV...

5

Currently, when I try to add an annotation to the map in the user's location the annotation is not showing up. When I set the annotation (using the same code) besides the user's location it does sh...
Tole asked 29/9, 2019 at 12:15

4

How can I draw a route between user's current location to a specific location using MapKit in Swift? I searched a lot, but didn't find any helpful Swift-specific links or tutorials.
Mediacy asked 28/3, 2015 at 16:34

9

I am using MKMapView on a project and would like to center the map on a coordinate and zoom in. Just like Google maps has: GMSCameraPosition.camera(withLatitude: -33.8683, longitude: 151.2086, z...
Richelle asked 13/1, 2017 at 16:42

24

Solved

I've got several annotations I want to add to my MKMapView (it could 0-n items, where n is generally around 5). I can add the annotations fine, but I want to resize the map to fit all annotations o...
Oligosaccharide asked 26/8, 2009 at 17:35

3

Solved

I'm trying to get an understanding of how to draw polylines using Swift. I've looked at the documentation, referenced some tutorials, and checked out some other SO posts, but I still can't get the ...
Forbiddance asked 19/12, 2014 at 2:28

0

I'm just trying to touch on the map annotations, but the button's action is not working. I've tried to figure how to solve it but nothing so far. I'm wanting to use the Map without make de UIKit br...
Guyer asked 7/9, 2020 at 3:54

2

I have an array of CLLocationCoordinate2D, and need to draw a line connecting from the first index to the last index in the array. I have seen the answers here and elsewhere, but they are mostly f...
Executor asked 19/9, 2019 at 15:2

8

Solved

I have an MKMapView with possibly hundreds of polygons drawn. Using MKPolygon and MKPolygonRenderer as one is suppose to on iOS7. What I need is a way of acting upon the user touching one of the p...
Coolant asked 31/12, 2013 at 13:25

15

Solved

I have a map which shows correctly, the only thing I want to do now is set the zoom level when it loads. Is there a way to do this? Thanks
Malvasia asked 15/11, 2010 at 22:46

8

Solved

I am new to swift (iOS programming in general) and am trying to figure out how to zoom a map out to fit 2 points on the map. Currently I have var zoomRect = MKMapRectNull; var myLocationPointRec...
Bevy asked 26/11, 2014 at 19:44

4

Solved

I have a conditional statement to add map annotation icons/pins in the method below. The problem I'm having is that the map is being populated with all the same icon. It should detect the cat id an...
Roentgenotherapy asked 22/10, 2013 at 9:52

3

I have a map on my view controller and I don't know why but the delegate calloutAccessoryControlTapped is also called when I just tap on annotation view, not only when I tap on detail closure. So w...
Maduro asked 5/4, 2016 at 17:7

© 2022 - 2024 — McMap. All rights reserved.