Esempio n. 1
0
        }         // public void runTool(object param)

        /// <summary>
        /// Creates a simple graphics layer
        /// </summary>
        /// <returns>Redline layer</returns>
        private GraphicsLayer getRLLayer()
        {
            // call from runTool
            log("getRLLayer");
            var lyr = MapApplication.Current.SelectedLayer;
            var gl  = VLayer.makeRLLayer(MapApplication.Current.Map, layerID, layerName);

            gl.MouseLeftButtonDown -= gl_MouseLeftButtonDown;
            gl.MouseLeftButtonDown += gl_MouseLeftButtonDown;
            MapApplication.Current.SelectedLayer = lyr;
            return(gl);
        }         // private GraphicsLayer getRLLayer()
Esempio n. 2
0
        }         // public static GraphicsLayer makeRLLayer(Map map, string layerID, string layerName)

        /// <summary>
        /// Create RL layer.
        /// </summary>
        /// <param name="layerID"></param>
        /// <param name="layerName"></param>
        /// <returns></returns>
        public static GraphicsLayer createRLLayer(string layerID, string layerName)
        {
            return(VLayer.makeRLLayer(null, layerID, layerName));
        }         // public static GraphicsLayer createRLLayer(Map map, string layerID, string layerName)
Esempio n. 3
0
        }         // public static void restoreRLGraphics(GraphicsLayer gl, string xmlContent)

        /// <summary>
        /// Create and add to map a simple graphics layer or return existed
        /// </summary>
        /// <returns>redline layer</returns>
        public static GraphicsLayer makeRLLayer(Map map, string layerID, string layerName)
        {
            return(VLayer.makeRLLayer(map, layerID, layerName));
        }         // public static GraphicsLayer makeRLLayer(Map map, string layerID, string layerName)