【发布时间】: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