예제 #1
0
        public void ChangeLayerOpacity(double opacity)
        {
            if (!MapLayers.Any(x => x.IsVisible))
            {
                return;
            }

            MapLayers.Where(x => x.IsVisible)?.ForEach(x => x.Layer.Opacity = opacity);
        }
예제 #2
0
 private void LayerVisibilityChanged()
 {
     AnyLayerIsVisible = MapLayers?.Any(x => x?.IsVisible == true) == true;
 }