A slide stores a snapshot of several pre-set properties of the WebScene, such as the basemap, viewpoint and visible layers.

See https://developers.arcgis.com/web-map-specification/objects/slide/ https://developers.arcgis.com/web-scene-specification/objects/slide/.

interface SlideJson {
    baseMap?: string | BasemapJson;
    description?: {
        text: string;
    };
    environment?: EnvironmentJson;
    extent?: ExtentJson;
    hidden?: boolean;
    id?: string;
    mapLocation?: {
        centerPoint?: PointJson;
        spatialReference?: SpatialReferenceJson;
    };
    thumbnail?: {
        url: string;
    };
    timeExtent?: number[];
    title?: {
        backgroundColor?: ColorJson;
        borderColor?: ColorJson;
        borderSize?: number;
        font?: string;
        fontSize?: number;
        foregroundColor?: ColorJson;
        horizontalAlignment?: number;
        opacity?: number;
        text?: string;
        titleFontStyle?: number;
    };
    viewpoint?: ViewpointJson;
    visibleLayers?: {
        featureVisibility?: number[][];
        id?: string;
        subLayerIds?: number[];
    }[];
    visiblePopup?: {
        anchorPoint?: PointJson;
        featureId?: number;
        layerId?: string;
        subLayerIds?: number[];
    };
}

Properties

baseMap?: string | BasemapJson

The basemap of the scene. Only the base and reference layers of the basemap are stored in a slide. This value can be an instance of Basemap or one of the strings listed in the table below. Same as baseMap, but with no elevationLayers property.

description?: {
    text: string;
}

Text description of the individual presentation slide.

Type declaration

  • text: string

    Text to display as slide description.

environment?: EnvironmentJson

Represents settings that affect the environment in which the WebScene is displayed (such as lighting).

extent?: ExtentJson

The standard Esri extent object with spatialReference, xmax, xmin, ymax and ymin. [WebMap Only].

hidden?: boolean

Indicates whether the slide should be hidden within the presentation. [WebMap Only].

id?: string

The unique id of a slide within the slides property of a Presentation.

mapLocation?: {
    centerPoint?: PointJson;
    spatialReference?: SpatialReferenceJson;
}

An object with a centerPoint object and sometimes a resolution. [WebMap Only] https://developers.arcgis.com/web-map-specification/objects/mapLocation/.

Type declaration

  • OptionalcenterPoint?: PointJson

    The center of the map in with a x and y coordinate.

  • OptionalspatialReference?: SpatialReferenceJson

    Well-known ID (WKID) or well-known text (WKT).

thumbnail?: {
    url: string;
}

Type declaration

  • url: string

    The URI pointing to the thumbnail image representing the slide.

timeExtent?: number[]

An array of two numbers. The first one indicates start time and the second one indicates end time. [WebMap Only].

title?: {
    backgroundColor?: ColorJson;
    borderColor?: ColorJson;
    borderSize?: number;
    font?: string;
    fontSize?: number;
    foregroundColor?: ColorJson;
    horizontalAlignment?: number;
    opacity?: number;
    text?: string;
    titleFontStyle?: number;
}

Type declaration

  • OptionalbackgroundColor?: ColorJson

    The color of the title text box, for example [0,0,0,255].

  • OptionalborderColor?: ColorJson

    The color of the border surrounding the title text box, for example [0,0,0,255].

  • OptionalborderSize?: number

    The sizing of the border.

  • Optionalfont?: string

    The font style picked for the title.

  • OptionalfontSize?: number

    The size of the font for the text in the title.

  • OptionalforegroundColor?: ColorJson

    Color of the text.

  • OptionalhorizontalAlignment?: number

    Alignment of the text box.

  • Optionalopacity?: number

    The opacity of background and border.

  • Optionaltext?: string

    Text to display as titles for slide.

  • OptionaltitleFontStyle?: number

    A number between 1 and 7.

viewpoint?: ViewpointJson

The viewpoint of the slide. This acts like a bookmark, saving a predefined location or point of view from which to view the scene.

visibleLayers?: {
    featureVisibility?: number[][];
    id?: string;
    subLayerIds?: number[];
}[]

An array of numbers indicating layer visibility. Stores references (by ID) to the layers that are set as visible when a slide is applied to a MapView or SceneView. See https://developers.arcgis.com/web-map-specification/objects/visibleLayer/ https://developers.arcgis.com/web-scene-specification/objects/visibleLayer/.

Type declaration

  • OptionalfeatureVisibility?: number[][]

    An array of arrays.

  • Optionalid?: string

    The id of the layer as listed on the operational layer.

  • OptionalsubLayerIds?: number[]

    An integer specifying the sublayer id.

visiblePopup?: {
    anchorPoint?: PointJson;
    featureId?: number;
    layerId?: string;
    subLayerIds?: number[];
}

A presentation slide's visiblePopup which contains anchorPoint, featureId, layerId, and subLayerId. See https://developers.arcgis.com/web-map-specification/objects/visiblePopup/.

Type declaration

  • OptionalanchorPoint?: PointJson

    Object with spatialReference, x, and y.

  • OptionalfeatureId?: number

    An integer specifying the feature's id.

  • OptionallayerId?: string

    A string specifying the layer id.

  • OptionalsubLayerIds?: number[]

    An integer specifying the sublayer id.