using Yw.WebBrower;
namespace PBS.WinFrmUI.Hydro
{
///
///
///
public class MapSetPlaceMarkerCallBackObj : CallBackObj, IMapSetPlaceMarkerEvents
{
///
/// 设置标记事件
///
public event Action SetMarkerEvent;
///
/// 设置地图边界事件
///
public event Action SetMapBoundsEvent;
///
/// 设置标记
///
public void SetMarker(string json)
{
var marker = JsonHelper.Json2Object(json);
this.SetMarkerEvent?.Invoke(marker);
}
///
/// 设置标记
///
public void SetMapBounds(string southWestjson, string northEastjson)
{
var southWest = JsonHelper.Json2Object(southWestjson);
var northEast = JsonHelper.Json2Object(northEastjson);
this.SetMapBoundsEvent?.Invoke(southWest, northEast);
}
}
}