Xamarin.Forms.Maps - 如何绘制两点之间的路径 - 折线 [英] Xamarin.Forms.Maps - How to draw the path bewteen two points - Polylines
问题描述
我正在使用 Xamarin 开发一个共享应用程序项目.我尝试在两点之间建立路径,但是,我只能找到一条正确的路径..我在互联网上搜索但没有找到任何有趣的东西......尽管存在这个问题,但只有鸟类才能使用此应用程序!
I'm working on a shared application projects with Xamarin. I try to make the path between two points, however, I only get a right path.. I search on the internet but without find anything interesting... In despite of this problem, only birds will be able to use this app !
我按照本教程制作地图:使用地图一个>
I followed this tutorial for the maps : Working with maps
为了自定义它,我遵循了本教程:在地图上突出显示路线
To customise it, I followed this tutorial : Highlight a Route on a Map
感谢帮助!
推荐答案
我认为您必须将每个转弯添加为新的路线坐标,而不仅仅是从 A 点到 B 点.要获得这些坐标,您将可能需要第三者服务
I think you will have to add each turn as a new route coordinate, and not just from point A to point B. To get these coordinates, you'll likely need a 3rd party service
这篇关于Xamarin.Forms.Maps - 如何绘制两点之间的路径 - 折线的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!