/// <summary> /// Update layer menu /// </summary> /// <param name="layerMenu"></param> public void UpdateLayerMenu(LayerMenuOptions layerMenu) { MapConfig config = readMapConfigFromFile(); var tool = config.tools.Find(t => t.type == "layerswitcher"); tool.options = layerMenu; this.saveMapConfigToFile(config); }
public void UpdateLayerMenu(LayerMenuOptions config) { this.settingsDataContext.UpdateLayerMenu(config); }