Beispiel #1
0
 /// <summary>
 /// Update WMS-layer with new config-options.
 /// </summary>
 /// <param name="layer"></param>
 public void UpdateWMTSLayer(WMTSConfig layer)
 {
     LayerConfig layerConfig = this.readLayerConfigFromFile();
     var index = layerConfig.wmtslayers.FindIndex(item => item.id == layer.id);
     if (index != -1)
     {
         layerConfig.wmtslayers[index] = layer;
     }
     this.saveLayerConfigToFile(layerConfig);
 }
Beispiel #2
0
 public void UpdateWMTSLayer(WMTSConfig layer)
 {
     this.settingsDataContext.UpdateWMTSLayer(layer);
 }
Beispiel #3
0
        /// <summary>
        /// Add wmts layer
        /// </summary>
        /// <param name="layer"></param>
        public void AddWMTSLayer(WMTSConfig layer)
        {
            LayerConfig layerConfig = this.readLayerConfigFromFile();
            if (layerConfig.wmtslayers == null)
            {
                layerConfig.wmtslayers = new List<WMTSConfig>();
            }
            layerConfig.wmtslayers.Add(layer);

            this.saveLayerConfigToFile(layerConfig);
        }
Beispiel #4
0
 public void AddWMTSLayer(WMTSConfig layer)
 {
     this.settingsDataContext.AddWMTSLayer(layer);
 }