ArcGIS Pro 3.6 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / BulkLayerCreationParams Class / AutoZoomOnEmptyMap Property

In This Topic
    AutoZoomOnEmptyMap Property (BulkLayerCreationParams)
    In This Topic
    Gets and sets if the Map is zoomed to the combined extent of the layers if they are the first set of layers to be added to the Map. The default value is true.
    Syntax
    public new bool AutoZoomOnEmptyMap {get; set;}
    Public Shadows Property AutoZoomOnEmptyMap As Boolean
    Remarks
    This does not include base maps.

    This property only affects the behavior of the map if it has no non-base map layers. If it is set false it means that the map extent will not change when the layers are added.

    If the set of layers to be added are specified by a set of LayerCreationParams objects, then this property overrides the individual LayerCreationParams.AutoZoomOnEmptyMap properties.

    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3.4 or higher.
    See Also