Example #1
0
		public static UIBezierPath ToUIKit(this Polygon polygon,IViewport viewport)
		{
			var group = new UIBezierPath();
			group.UsesEvenOddFillRule = true;
			group.AppendPath(ToUIKit(polygon.ExteriorRing, viewport));
			group.AppendPath(ToUIKit(polygon.InteriorRings, viewport));
			return group;
		}
Example #2
0
		public static UIBezierPath ToUIKit(this IEnumerable<LinearRing> linearRings, IViewport viewport)
		{
			var pathGeometry = new UIBezierPath();
			foreach (var linearRing in linearRings)
				pathGeometry.AppendPath(CreatePathFigure(linearRing, viewport));
			return pathGeometry;
		}
Example #3
0
		public static UIBezierPath ToUIKit(this MultiLineString multiLineString, IViewport viewport)
		{
			var group = new UIBezierPath();
			foreach (LineString lineString in multiLineString)
				group.AppendPath(ToUIKit(lineString, viewport));
			return group;
		}
Example #4
0
		public static UIBezierPath ToUIKit(this MultiPolygon geometry, IViewport viewport)
		{
			var group = new UIBezierPath();
			foreach(var polygon in geometry.Polygons)
				group.AppendPath(ToUIKit(polygon, viewport));

			return group;
		}
Example #5
0
		public static UIBezierPath ToUIKit(this LinearRing linearRing, IViewport viewport)
		{
			var pathGeometry = new UIBezierPath();
			pathGeometry.AppendPath(CreatePathFigure(linearRing, viewport));
			return pathGeometry;
		}