Example #1
0
        private Graphic AddVertexToEditLayer(Graphic graphic, GraphicsLayer layer, MapPoint p)
        {
            Graphic g = new Graphic()
            {
                Geometry = p,
                Symbol   = VertexSymbol
            };

            g.SetZIndex(2);
            layer.Graphics.Add(g);
            g.Attributes.Add("Feature", graphic);
            g.AddDoubleClick(vertex_doubleClick);
            return(g);
        }