/// <summary> /// Update positions of layers within map after they changed in the legend. /// </summary> internal void UpdateMapLayerPositions() { var grpCount = _groups.Count; _map.LockWindow(tkLockMode.lmLock); for (var i = grpCount - 1; i >= 0; i--) { var grp = GetGroup(i); var lyrCount = grp.Layers.Count; for (var j = lyrCount - 1; j >= 0; j--) { Layer lyr = grp.LayersList[j]; var lyrPosition = _map.get_LayerPosition(lyr.Handle); _map.MoveLayerBottom(lyrPosition); } } _map.LockWindow(tkLockMode.lmUnlock); }
public bool MoveBottom(int initialPosition) { return(_axMap.MoveLayerBottom(initialPosition)); }
public void MoveToBottom() { _axmap.MoveLayerBottom(_axmap.get_LayerPosition(_currentMapLayer.Handle)); _axmap.Redraw(); }