Example #1
0
 /// <summary>
 /// 根据已有控件重绘
 /// </summary>
 /// <param name="map"></param>
 /// <param name=""></param>
 public LegendSymbol(Map.MyMap map, LegendSymbol from, Point location, double resizescale2formal)
 {
     ResizeScale = resizescale2formal;
     SetLegend(map, ResizeScale);
     Box.Name     = "LegendSymbol";
     Box.Location = location;
 }
Example #2
0
        /// <summary>
        /// 图例
        /// </summary>
        public void AddLegendSymbol()
        {
            CosmosGIS.LayoutClass.LegendSymbol from = new CosmosGIS.LayoutClass.LegendSymbol(thismap, new Point((int)(PB_background.Width * 0.7), (int)(PB_background.Height * 0.5)));
            Point        location   = ComputeResizeLocation(from.Box.Location, boxscale);
            LegendSymbol newlengend = new LegendSymbol(thismap, from, location, boxscale);

            this.Add(newlengend.Box);
        }