コード例 #1
0
 public DrawPolyline(PointLatLng p1, PointLatLng p2, int zoom, TOOL_TYPE type)
     : base()
 {
     property = new PropertyLine();
     property.LocalPosition = p1;
     property.DefaultZoom   = zoom;
     property.Type          = type;
     Overlay = Global.control.Overlays.Count - 1;
     PointsArray.Add(p1);
     PointsArray.Add(p2);
 }
コード例 #2
0
ファイル: PropertyLine.cs プロジェクト: cyberslacking/Fork
        public PropertyLine Clone()
        {
            PropertyLine p = new PropertyLine();

            p.ID            = this.ID;
            p.DefaultZoom   = this.DefaultZoom;
            p.MinZoom       = this.MinZoom;
            p.MaxZoom       = this.MaxZoom;
            p.Name          = this.Name;
            p.LocalPosition = this.LocalPosition;
            p.color         = this.color;
            p.penWidth      = this.penWidth;
            p.distance      = this.distance;
            p.Type          = this.Type;
            return(p);
        }
コード例 #3
0
        public DrawPolyline(int x, int y, int zoom, TOOL_TYPE type)
            : base()
        {
            property = new PropertyLine();
            property.LocalPosition = Global.control.FromLocalToLatLng(x, y);
            property.DefaultZoom   = zoom;
            property.Type          = type;

            Overlay = Global.control.Overlays.Count - 1;

            PointLatLng p;

            p = Global.control.FromLocalToLatLng(x, y);
            PointsArray.Add(p);
            p = Global.control.FromLocalToLatLng(x + 15, y + 15);
            PointsArray.Add(p);
        }