mkmapview Questions
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
2
Solved
I would like to add some logic when user moves with map view i. e. he does a pan touch. But when I add the gesture recognizer and I want to log the touch, nothing happens. When I try it in another ...
Col asked 15/2, 2011 at 15:26
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
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
4
I'm attempting to change the user default location annotation on the MKMapView from the blue to a custom image named geo. It's hitting the line to set it to geo when I set breakpoints, but both poi...
2
Solved
Here is what I want - user taps on the map, my code gets executed and then system code is executed (if user clicked on annotation callout is presented etc...).
I added simple tap recognizer to map...
Buss asked 14/3, 2012 at 10:47
11
Solved
I am learning how to use the new Swift language (only Swift, no Objective-C). To do it, I want to do a simple view with a map (MKMapView). I want to find and update the location of the user (like i...
Cowen asked 22/8, 2014 at 14:31
4
I basically have a map where I add two annotations and they are shown as expected.
Then I´m using the following code:
let annotations = [start, end]
mapView?.showAnnotations(annotations, animate...
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 *= ...
12
Solved
the question is - is there a way to limit maximum zoom level for MKMapView? Or is there a way to track when user zooms to the level where there's no map image available?
2
Solved
Can we have custom annotation view for the users current location in iOS?
I need to remove the blue dot (with circles) with my own custom view (say some ping pin). Is it possible to do this?
If...
Musty asked 11/7, 2012 at 12:32
7
Solved
I'd like to a-synchronically load images for my custom MKAnnotationView; I'm already using the EGOImageView-framework (it goes very well with UITableViews), but I fail to make it work on MKMapView....
Thorax asked 7/11, 2009 at 22:25
15
Solved
I'm not sure what I am doing wrong but I try to catch touches on a MKMapView object. I subclassed it by creating the following class :
#import <UIKit/UIKit.h>
#import <MapKit/MapKit.h>...
Nappie asked 26/6, 2009 at 15:51
5
Solved
I have a MKMapView with annotation pins. When the view was loaded the nearest pin gets searched and the map will get zoomed so it shows both, the user's location and the nearest pin. I do that with...
Haemic asked 16/4, 2013 at 15:32
5
Solved
I am trying to remove overlays from map.
func removeMapOverlay() {
var removeOverlays : [AnyObject]! = self.mapView.overlays
// Above line throws runtime exception
self.mapView.removeOverlays...
10
Solved
Is there a simple way to delete all the annotations on a map without iterating through all the displayed annotations in Objective-c?
Risa asked 12/6, 2010 at 3:44
7
Solved
Im working with MKMapView and MKAnnotationView.
I have an annotation in the map. When the users tap on it, the callOut Bubble is displayed. When the annotation is tapped again ( and the callOut Bu...
Frady asked 3/8, 2010 at 10:48
2
I would like keep the MKAnnotaion on the centre of the screen when the user scoll the map like Careem app:
So far I managed to show the pin, update the pin position but when I scroll the map, ...
Bayou asked 21/4, 2015 at 12:3
9
Solved
I have a view on the iPad that I'm adding an MKMapView to that is say half the height of the full screen. However, when I try to pinch out on the iOS Simulator it doesn't work since the to nubs fil...
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...
6
Solved
I'm trying to add a custom image to an MKMapView as an MKOverlayView - I need to restrict users from being able to scroll outside the bounds of the overlay. Are there any existing functions to do t...
Celestial asked 7/11, 2010 at 18:45
2
Solved
I'm attempting to make a gesture recognizer in XCode, so that I can tap on my MKMapView and preform some actions. However, I am receiving the "unrecognized selector sent to instance" whenever I lon...
7
Solved
Tapping the pulsating blue circle representing the userLocation brings up a "Current Location" callout. Is there a way to suppress that?
Pastoral asked 29/11, 2011 at 23:20
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...
© 2022 - 2024 — McMap. All rights reserved.