问题描述
我想在 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);