【发布时间】:2016-05-26 05:51:12
【问题描述】:
我希望你能帮助我。我在网络上找不到任何对 GMap.net 的 WPF 版本有帮助的东西。
问题:我没有看到我的路线。
List<Location> points = PolylinePoint.Decode(responseData.routes.First().overview_polyline.points);
GMap.NET.WindowsPresentation.GMapRoute route = new GMap.NET.WindowsPresentation.GMapRoute(points.Select(x => new PointLatLng(x.Latitude.Value, x.Longitude.Value)));
route.ZIndex = ROUTESLIST;
route.Shape = new Line() { StrokeThickness = 4, Stroke = System.Windows.Media.Brushes.BlueViolet };
this.routenList.Clear();
this.routenList.Add(route);
主要问题是,我不能像 GMap.NET 教程中那样使用叠加层。
有什么建议吗?
【问题讨论】:
-
project site 确实有很多示例,也适用于 WPF 中的路由。
-
为了提供更多帮助,请提供更多您所做的工作,特别是让我们知道
routenlist和ROUTESLIST代表什么。