The Layer Swipe bundle allows you to easily compare the content of two different layers in a map using the LayerSwipe widget of the Esri ArcGIS API for JavaScript. In the configuration you can choose between horizontal, vertical and scope viewing modes.
https://demos.conterra.de/mapapps/resources/apps/downloads_layer_swipe4/index.html
Requirement: map.apps 4.8.0
Clone this project and ensure that you have all required dependencies installed correctly (see Documentation).
Then run the following commands from the project root directory to start a local development server:
# install all required node modules
$ mvn initialize
# start dev server
$ mvn compile -Denv=dev -Pinclude-mapapps-deps
# run unit tests
$ mvn test -P run-js-tests,include-mapapps-deps