Sunday, March 19, 2023
HomeiOS developmentios - MapKit arrow sample path for MKOverlayRenderer

ios – MapKit arrow sample path for MKOverlayRenderer


I’m making a Swift iOS app that shows a MKPolyline overlay (route imported from GPX file) utilizing a Apple MapKit map.

I want to present the instructions of the trail on the drawn overlay (see instance under).
For now I’ve a considerably working answer utilizing annotations (due to https://stackoverflow.com/a/17834141/1197572)

My understanding is that the specified impact ought to be achievable by subclassing MKOverlayRenderer and making customized drawing with the CGContext, however I’m not acquainted sufficient with CoreGraphics to grasp if and the way this may very well be performed.

My present answer Desired answer
Current Objective

This instance comes from the Visorando app.
It’s utilizing OpenStreetMaps, so perhaps that is built-in.

Has anybody any pointers how I might obtain this?

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments