Esempio n. 1
0
        public PropertyMarker Clone()
        {
            PropertyMarker p = new PropertyMarker();

            p.ID            = this.ID;
            p.DefaultZoom   = this.DefaultZoom;
            p.MinZoom       = this.MinZoom;
            p.MaxZoom       = this.MaxZoom;
            p.Name          = this.Name;
            p.Type          = this.Type;
            p.LocalPosition = this.LocalPosition;
            p.ImageFile     = this.ImageFile;
            p.toolTipMode   = this.toolTipMode;
            return(p);
        }
Esempio n. 2
0
        public DrawMarker(long pid, int x, int y, int zoom, TOOL_TYPE type, MARKER_TYPE markerType)
            : base()
        {
            PointLatLng latlng = Global.control.FromLocalToLatLng(x, y);

            PointsArray.Add(latlng);

            property               = new PropertyMarker();
            property.DefaultZoom   = zoom;
            property.LocalPosition = latlng;
            property.Type          = type;
            property.MarkerType    = markerType;
            if (type == TOOL_TYPE.camera)
            {
                property.ImageFile = @"image\camera_0.ico";
            }
            else if (type == TOOL_TYPE.model)
            {
                property.ImageFile = @"image\model.ico";
            }
            else if (type == TOOL_TYPE.marker)
            {
                if (markerType == MARKER_TYPE.Green)
                {
                    property.ImageFile = @"image\marker_0.ico";
                }
                else if (markerType == MARKER_TYPE.Yellow)
                {
                    property.ImageFile = @"image\marker_2.ico";
                }
                else if (markerType == MARKER_TYPE.Red)
                {
                    property.ImageFile = @"image\marker_1.ico";
                }
                else if (markerType == MARKER_TYPE.Gray)
                {
                    property.ImageFile = @"image\marker_3.ico";
                }
            }
        }