Esempio n. 1
0
        public static void Draw(CALayer target, IViewport viewport, IStyle style, IFeature feature)
        {
            var lineString = ((LineString)feature.Geometry).Vertices;
            var paints     = style.ToUIKit();

            foreach (var paint in paints)
            {
                var path  = ((LineString)feature.Geometry).Vertices.ToUIKit(viewport);
                var shape = new CAShapeLayer
                {
                    StrokeColor = paint.CGColor,
                    LineWidth   = 4f,
                    Path        = path.CGPath
                };

                target.AddSublayer(shape);
            }
        }