/// <summary> /// 清除所有图层 /// </summary> public bool ClearLayer() { lock (layerDic) { mapFactory.ClearLayer(); layerDic.Clear(); return(true); } }
/// <summary> /// 清除图元 /// </summary> public void ClearElement() { lock (_elementDic) { _mapFactory.ClearLayer(LayerName); foreach (IMFElement ele in _elementDic.Values) { ele.Update(); ele.Dispose(); } _elementDic.Clear(); } }