ningshuxia
2025-03-28 ce9752fd657c6689ea64929eb962146e2730624e
WinFrmUI/Yw.WinFrmUI.Map.Core/03-SetSimpleMarker/MapSetSimpleMarkerContainer.cs
@@ -1,4 +1,6 @@
using Yw.Model.Map;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using Yw.Model.Map;
namespace Yw.WinFrmUI
{
@@ -86,9 +88,59 @@
            return await this.webViewControl1.EvaluateScriptAsync<bool>("loadMarker", marker);
        }
        /// <summary>
        /// 查询地址
        /// </summary>
        public async Task SearchAddress()
        {
            if (!this.IsInitialized)
            {
                return;
            }
            await this.webViewControl1.EvaluateScriptAsync("searchAddress()");
        }
        #region 边框
        /// <summary>
        /// 显示边框
        /// </summary>
        [Display(Name = "显示边框")]
        [DisplayName("显示边框")]
        [Browsable(true)]
        public bool ShowBorder
        {
            get { return this.webViewControl1.ShowBorder; }
            set { this.webViewControl1.ShowBorder = value; }
        }
        /// <summary>
        /// 边框颜色
        /// </summary>
        [Display(Name = "边框颜色")]
        [DisplayName("边框颜色")]
        [Browsable(true)]
        public Color BorderColor
        {
            get { return this.webViewControl1.BorderColor; }
            set { this.webViewControl1.BorderColor = value; }
        }
        /// <summary>
        /// 边框宽度
        /// </summary>
        [Display(Name = "边框宽度")]
        [DisplayName("边框宽度")]
        [Browsable(true)]
        public int BorderWidth
        {
            get { return this.webViewControl1.BorderWidth; }
            set { this.webViewControl1.BorderWidth = value; }
        }
        #endregion