//Draw the altitude legend bar along the bottom private void legendBar(int id) { if (bigmap.MType == mapType.Altimetry && SCANcontroller.controller.legend) { if (bigmap.MapLegend == null) { bigmap.MapLegend = new SCANmapLegend(); } bigmap.MapLegend.Legend = bigmap.MapLegend.getLegend(data.TerrainConfig.MinTerrain, data.TerrainConfig.MaxTerrain, SCANcontroller.controller.colours, data); SCANuiUtil.drawLegend(data, bigmap.MapLegend); } }