ArcGIS Pro 3.3 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / LayerCreationParams Class / AutoZoomOnEmptyMap Property

In This Topic
    AutoZoomOnEmptyMap Property
    In This Topic
    Gets and sets if the Map is zoomed to the layer extent if it is the first layer to be added.
    Syntax
    public bool AutoZoomOnEmptyMap {get; set;}
    Public Property AutoZoomOnEmptyMap As Boolean
    Remarks
    The default value is true. This does not include base maps. It only affects the behavior of the map if this is the first (non-base map) layer being added. If it is set false it means that the map extent will not change (to the extent of the first layer being added)
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3.1 or higher.
    See Also