var ctrl = m_Map.GetCtrlMan();
var ctrlstate = ctrl.GetControlState();
var size = ctrlstate.GetSizeDP();
var height = 160;
var indexmap = ctrl.GetIndexMap();
if (!indexmap.IsIndexMapVisible()) {
if (indexmap.GetIndexMapLeft() == -1000 || indexmap.GetIndexMapTop() == -1000 || indexmap.GetIndexMapHeight() == -1000) {
indexmap.SetIndexMapLeft(size._CX - indexmap.GetIndexMapWidth() - 10);
indexmap.SetIndexMapTop(10);
indexmap.SetIndexMapHeight(160);
}
if (indexmap.IsMinimized()) indexmap.SetNormal();
indexmap.ShowIndexMap();
indexmap.SetIndexMapHeight(height);
}