/// <summary>
        /// 添加报警门店
        /// </summary>
        /// <param name="LogPnt"></param>
        public void AddMarkGif(marketsInfo warnMarket)
        {
            if (warnMarks == null)
            {
                warnMarks = new List <IMSMark>();
            }
            GIFToolTip gif = new GIFToolTip();

            gif.Addtip(warnMarket);
            IMSMark mark = new IMSMark(gif, CoordinateType.Logic, this.markLayer);

            mark.EnableAnimation  = false;
            mark.EnableRevisedPos = true;

            Point pnt = new Point(warnMarket.X, warnMarket.Y);

            pnt   = this.mapContainer.LogicToScreen(pnt.X, pnt.Y);
            pnt.X = pnt.X - 11;
            pnt.Y = pnt.Y - 11;
            pnt   = this.mapContainer.ScreenToLogic(pnt.X, pnt.Y);

            mark.X = pnt.X;
            mark.Y = pnt.Y;
            warnMarks.Add(mark);
            this.markLayer.AddMark(mark);
            this.mapContainer.SetCenter(warnMarket.X, warnMarket.Y);
        }
示例#2
0
        /// <summary>
        /// 添加单个标注
        /// </summary>
        /// <param name="LogPnt"></param>
        public void AddMarkGif(marketsInfo warnMarket)
        {
            GIFToolTip gif = new GIFToolTip();

            gif.Addtip(warnMarket);
            IMSMark mark = new IMSMark(gif, CoordinateType.Logic, markLayer1);

            mark.EnableAnimation  = false;
            mark.EnableRevisedPos = true;

            Point pnt = new Point(warnMarket.X, warnMarket.Y);

            pnt.X = pnt.X - 11;
            pnt.Y = pnt.Y - 11;
            pnt   = this.mapContainer.ScreenToLogic(pnt.X, pnt.Y);

            mark.X = pnt.X;
            mark.Y = pnt.Y;

            markLayer1.AddMark(mark);
        }