Parameters
- mapView
- The mapview against which the layer visibility is checked
var mapView = MapView.Active; var layer = mapView.Map.GetLayersAsFlattenedList().OfType<Layer>().FirstOrDefault(); if (mapView == null) return; bool isLayerVisibleInView = layer.IsVisibleInView(mapView); if (isLayerVisibleInView) { //Do Something }
Target Platforms: Windows 11, Windows 10, Windows 8.1