Swipe

The Swipe widget provides a tool that shows a portion of a layer in a map when you swipe.

Configurable attributes

The following table describes the configurable attributes of the Swipe widget.

AttributeDescription

style

String. Style of swipe too. The default value is vertical. Available options are vertical, horizontal, and scope.

layerId

String. The ID of the layer to swipe. There is no default value.

Example

{
    "style": "vertical",
    "layerId": "SuperTuesdaySample_1433"
}

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.