Exemple #1
0
 /// <summary>
 /// Update WMS-layer with new config-options.
 /// </summary>
 /// <param name="layer"></param>
 public void UpdateWMSLayer(WMSConfig layer)
 {
     LayerConfig layerConfig = this.readLayerConfigFromFile();
     var index = layerConfig.wmslayers.FindIndex(item => item.id == layer.id);
     if (index != -1)
     {
         layerConfig.wmslayers[index] = layer;
     }
     this.saveLayerConfigToFile(layerConfig);
 }
Exemple #2
0
 public void UpdateLayer(WMSConfig layer)
 {
     this.settingsDataContext.UpdateWMSLayer(layer);
 }
Exemple #3
0
 /// <summary>
 /// Add wms layer
 /// </summary>
 /// <param name="layer"></param>
 public void AddWMSLayer(WMSConfig layer)
 {
     LayerConfig layerConfig = this.readLayerConfigFromFile();
     layerConfig.wmslayers.Add(layer);
     this.saveLayerConfigToFile(layerConfig);
 }
Exemple #4
0
 public void AddLayer(WMSConfig layer)
 {
     this.settingsDataContext.AddWMSLayer(layer);
 }