【问题标题】:GMap.NET winforms. Ground Overlays functionality(upload external piece of map)GMap.NET winforms。地面覆盖功能(上传外部地图)
【发布时间】:2021-04-14 11:26:06
【问题描述】:

我想在 gmap 视图中做这样的事情: https://developers.google.com/maps/documentation/javascript/groundoverlays

我可以放置多边形并填充纹理,它的工作但我代表这个纹理并将这个纹理映射到地图视图有问题。例如,当我按下缩放时,纹理会被破坏。

GMapOverlay polygons = new GMapOverlay("polygons");
List<PointLatLng> points = new List<PointLatLng>();
points.Add(new PointLatLng(48.866383, 2.323575));
points.Add(new PointLatLng(48.863868, 2.321554));
points.Add(new PointLatLng(48.861017, 2.330030));
points.Add(new PointLatLng(48.863727, 2.331918));
GMapPolygon polygon = new GMapPolygon(points, "Jardin des Tuileries");

polygon.Fill = new TextureBrush();//here i can put texture
polygon.Stroke = new Pen(Color.Red, 1);

polygons.Polygons.Add(polygon);
gmap.Overlays.Add(polygons);

【问题讨论】:

    标签: c# winforms google-maps gmap.net


    【解决方案1】:

    GMapControl.Overlays 仅限于标记、多边形和路线

    你可以使用

    https://github.com/SharpMap

    对于这样的叠加

    【讨论】:

      猜你喜欢
      • 2021-01-03
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多