使用 iPhone 地图套件在引脚之间绘制线条

发布于 2024-10-06 23:13:27 字数 589 浏览 0 评论 0原文

是否可以使用 MapKit 在两个或多个位置之间绘制自定义线条?或者我需要自定义覆盖层吗?有关于这个主题的教程吗?

我有一个正在运行的“Google 地图应用程序”,现在我想用直线连接我的位置。

http://maps.google.com/maps/api/staticmap?size=400x400& ;缩放=13&路径=颜色:0xff0000ff|权重:5|40.737102,-73.990318|40.749825,-73.987963&标记=颜色%3ablue|标签%3aS|40.737102,-73.990318|40.749825,-73.9 87963&传感器=假

Is it possible to draw custom lines between two or more locations with the MapKit? Or do I need a custom overlay? Is there some kind of tutorial about this topic?

I have a working "Google Maps Application" and now I want to connect my locations with straight lines.

http://maps.google.com/maps/api/staticmap?size=400x400&zoom=13&path=color:0xff0000ff|weight:5|40.737102,-73.990318|40.749825,-73.987963&markers=color%3ablue|label%3aS|40.737102,-73.990318|40.749825,-73.987963&sensor=false

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

中二柚 2024-10-13 23:13:27

您可以使用 MKPolyline 在地图中绘制线条。

请参阅此链接

http://spitzkoff.com/craig/?p=136

You can draw lines in map using MKPolyline.

See this link

http://spitzkoff.com/craig/?p=136

温柔少女心 2024-10-13 23:13:27

您可以在两个引脚之间画线

请参阅链接:
mapkit 路线

You Can Draw Lines Between Two pins

See The Link:
mapkit route

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文