} // private void renewRL() /// <summary> /// Reload graphics and restore graphics symbols in RL layer /// </summary> /// <param name="map">Map</param> /// <param name="layerID">layer id</param> /// <param name="layerName">layer name</param> /// <returns>redline layer or null</returns> public static GraphicsLayer reloadRLData(Map map, string layerID, string layerName) { // recreate RL layer, load RL content var gl = map.Layers[layerID] as GraphicsLayer; if (gl == null) { string.Format("VRedlineImpl.reloadRLData, lyr '{0}' doesn't exist", layerID).clog(); return(null); } var rlc = VLayer.getContent(gl); //map.Layers.Remove(gl); //gl = makeRLLayer(map, layerID, layerName); gl.Graphics.Clear(); restoreRLGraphics(gl, rlc); return(gl); } // public static GraphicsLayer reloadRLData(Map map, string layerID, string layerName)
} // public string getRLContent() public string getRLContent(GraphicsLayer gl) { // serialize GraphicsLayer log("getRLContent(gl), ..."); return(VLayer.getContent(gl)); } // public string getRLContent(GraphicsLayer gl)