Using MapKit to Create a Custom Image - iOS

Our use case is for displaying an image to the user that she can maximize / minimize (pinch). In addition, there are certain items (options) in the image that the user can click. In case the user decides to maximize the image, the points will also increase in size.

I've been looking into MapKit. Well, MapKit is extremely easy to use because it provides all these features - I can identify the touch and I don't have to worry about the user pinching the image.

I am wondering if it is possible to insert an image (possibly a human body image) over this mapView without displaying the map! It's like a quiz - the user has to click on the head.

Code for displaying the map:

import Foundation
import UIKit
import MapKit
@objc public class MTMapViewController : MTAbstractQuizController {

    @IBOutlet weak var mapView: MKMapView!

    public override func viewDidLoad() {
        super.viewDidLoad()
    }

    public override func viewWillAppear(_ animated: Bool) {
        super.viewWillAppear(animated)
    }
}

      

If you choose to reduce the issue, please indicate the reason (s). I am just researching if mapView can be used to resolve my use case.

+3


source to share


1 answer


With the introduction iOS11

, there MKMapType

will be a new case called mutedStandard

that will A street map where your data is emphasized over the underlying map details.

See the official documentation .



I haven't tried this myself, but it seems like a good candidate for your problem.

0


source







All Articles