我有一堆要在地图上以多边形形式构建的区域,即使这些点在正确的位置,这些区域也无法正确填充,这是对多边形的限制还是有解决方案?如果没有,您建议我为此使用什么?
//for each NUT2 area
foreach (var Nut in allareas.features)
{
//add the coordinates which is a list to the Polygon
var polygon = new GMapPolygon(Nut.coordinates, Nut.id);
polygon.IsHitTestVisible = true;
//colour stuff
polygon.Fill = new SolidBrush(Color.BurlyWood);
var polygons = new GMapOverlay("Polygons");
polygon.Tag = Nut.na;
polygon.IsHitTestVisible = true;
polygons.Polygons.Add(polygon);
gMapControl1.Overlays.Add(polygons);
}
结果示例: