Exemple #1
0
        /// <summary>
        /// 导出图层数据
        /// </summary>
        public override bool ExportGraphData()
        {
            GetGraphData();
            Dictionary <string, int[]> tmpData = new Dictionary <string, int[]>();

            tmpData.Add("weights", gridDatas);

            return(GraphJsonUtility.ExportGridDatas(tmpData));
        }
        /// <summary>
        /// 导出图层数据
        /// </summary>
        public override bool ExportGraphData()
        {
            //             GetGraphData();
            //             Dictionary<string, int[]> tmpData = new Dictionary<string, int[]>();
            //             tmpData.Add("weights", gridDatas);
            //             return GraphJsonUtility.ExportGridDatas(tmpData);

            Grid g = (Grid)this;

            return(GraphJsonUtility.ExportGridDatas(new CahcheGridData(g)));
        }