开发者

Is there a way to make a line between two coordinates in a map view of MapKit?

开发者 https://www.devze.com 2022-12-14 06:08 出处:网络
I have two locations. A current location (=visible) and a target location where the user may want to go to. could I make a line fro开发者_如何学JAVAm my current location to the target location? as far

I have two locations. A current location (=visible) and a target location where the user may want to go to. could I make a line fro开发者_如何学JAVAm my current location to the target location? as far as I get it, I can only create annotations. But maybe there's a way to just draw in there?


I believe you have to create custom class that implements the MKAnnotation protocol.

There is some good sample code on doing this to create routes at The Reluctant Blogger

0

精彩评论

暂无评论...
验证码 换一张
取 消