Step forward in time by 1 month
public void StepMapTime()
{
//Get the active view
MapView mapView = MapView.Active;
if (mapView == null)
return;
//Step current map time forward by 1 month
TimeDelta timeDelta = new TimeDelta(1, TimeUnit.Months);
mapView.Time = mapView.Time.Offset(timeDelta);
}
Disable time in the map.
MapView.Active.Time.Start = null;
MapView.Active.Time.End = null;
Target Platforms: Windows 11, Windows 10
ArcGIS Pro version: 3 or higher.