mapkit Questions
5
I'm trying to trace a route on a MKMapView using overlays (MKOverlay).
However, depending on the current speed, I want to do something like the Nike app with a gradient while tracing the route, if ...
4
Solved
I have an MKMapView and am adding an overlay (MKOverlay) to it.
I would like the overlay to make the map view underneath to appear black & white (i.e. monochrome). Is there any way of doing t...
1
I try to create a snapshot of my map view to display later so I don't have another map view wasting memory.
Most of the time it works just fine, but recently I tried creating a snapshot of Paris ...
8
I have one of my application, that is created in Xcode 8. I have used CoreLocation and MapKit in that app.
I have update app with latest iOS till now. and it was working fine. Now I am updating ap...
Calvo asked 18/10, 2019 at 6:27
5
I'm trying to migrate a app to iOS 11 and for days I'm stuck with one ugly UI bug after the other. This time: MKMapView. I have a bunch of buttons which I pinned to the Safe Area Layout Guides and ...
Polinski asked 23/11, 2017 at 9:39
6
Solved
I have a view controller with map kit integrated. I need to shoot an alert before opening that map, asking to choose from all similar applications of maps to open it with. For instance, if google m...
Fastness asked 7/7, 2016 at 16:10
6
Solved
I am using mapKit in my app and I have several functions that render graphics using layers of overlays.
Now, with iOS 13.2 update, when I move the map (with any method) functions that remove a sing...
0
On iOS 15 (actually since iOS 14), on a MKMapView when tapping on the default User Location a callout is shown displaying kind of an 'empty' profile picture.
You can see on the screenshot below the...
Alloy asked 11/1, 2022 at 10:58
5
Solved
I am able to determine the latitude and longitude of a location in the center of a map with the following:
func TargetGridReference(outletMapView_PrimaryTargetLocationMap: MKMapView, regionDidChan...
3
I have a map I'm populating with a list of food trucks, and I'd like to implement a custom callout like the one shown below, when an annotation is selected. Currently I have the standard annotation...
Glossectomy asked 3/8, 2016 at 5:13
3
Solved
Historic question. https://developer.apple.com/documentation/mapkit/mkusertrackingbutton is now available.
When you use the ordinary Map app on ios,
of course you have the blue pointer button, wh...
2
Solved
I have a MKAnnotationView subclass and place several of them on an MKMapView. The MKAnnotationView subclass sets some accessibility elements like this:
func applyAccessibility() {
self.isAccessi...
Divaricate asked 11/2, 2021 at 18:7
3
Solved
I'm trying to learn Combine with SwiftUI and I'm struggling how to update my view (from UIKit) with ObservableObject (previously BindableObject). The issue is that, obviously, method updateUIView w...
1
Using MapKit and SwiftUI (Version 12.0 beta 2 (12A6163b)) when zooming in/out around the map the terminal produces hundreds of these lines:
2020-07-21 21:05:39.310719-0500 MyApp[95733:4195994] [VK...
10
Solved
Can anyone tell me how I can mimic the bottom sheet in the new Apple Maps app in iOS 10?
In Android, you can use a BottomSheet which mimics this behaviour, but I could not find anything like that f...
Thurstan asked 22/6, 2016 at 12:6
4
Solved
I am working on an app that uses MKOverlay views to layer my own custom maps on top of the Google base map. I have been using Apple's excellent TileMap sample code (from WWDC 2010) as a guide.
My ...
3
Solved
When I need to make an MKCoordinateRegion, I do the following:
var region = MKCoordinateRegion
.FromDistance(coordinate, RegionSizeInMeters, RegionSizeInMeters);
very simple - works perfectly.
...
Big asked 22/1, 2014 at 2:51
6
Solved
I'm building a MapKit based app for iPhone.
I have a number of MKPolylines added to the map.
However, instead of having a MKPolyline, I would like to have my own Model class conforming to the MK...
2
Solved
I have a mapView in which I want to show user's current location. However, I don't want to centre the mapView to that location (it is centred to other location). So, for that reason, I don't get co...
6
I am trying to show on my current location and a blue dot on the map using the map view on swift. However it does not show my location nor the blue dot I'm very positive of my code but I can't get ...
Vlissingen asked 24/4, 2019 at 5:54
2
Solved
I need to figure out how to set up MKMapSnapshotterOptions to take a snapshot of aerial/satellite imagery associated with a polygonal region of the earth.
Filling out the 'region', 'scale', 'size'...
Onfre asked 10/1, 2014 at 1:4
1
I search places with the MKLocalSearchCompleter and refine the results when the tableView cell is selected. When a MKLocalSearchCompletion is selected and MKLocalSearch.Request() is started, I get ...
Secunda asked 25/2, 2021 at 16:15
3
this is my code for drawing first Line,
for another line with another color how can i do ?????
func mapView(mapView : MKMapView! , rendererForOverlay overlay: MKOverlay!) ->MKOverlayRenderer! ...
Stonebroke asked 20/1, 2015 at 12:20
10
I'm using a MKMapView inside an iPhone app. When I click a button the zoom level must increase. This is my first approach:
MKCoordinateRegion zoomIn = mapView.region;
zoomIn.span.latitudeDelta *= ...
8
I am trying to load a map and have the initial location on user's location as well as showing the user's location on the map using SwiftUI. I don't know how to do that in SwiftUI.
I have tried to ...
© 2022 - 2024 — McMap. All rights reserved.