Parameters
- mapView
- The mapview against which the layer visibility is checked
{
if (layer == null)
{
// no layers in the map, leave
}
if (mapView == null)
{
// no active map view, leave
}
bool isLayerVisibleInView = layer.IsVisibleInView(mapView);
if (isLayerVisibleInView)
{
//Do Something
}
}
Target Platforms: Windows 11 Home, Pro, Enterprise (64 bit)