Skip to content

Swipe functionality broken in Experience Builder 1.19 #3

@Jeffrey-Thompson

Description

@Jeffrey-Thompson

After upgrading to Experience Builder 1.19, the Swipe functionality is no longer working. When activated, the entire map whites out, failing to load the Nearmap imagery and all other map layers. Jimu-core generates a unhandled case: web-tile console warn when layers load. The layers load correctly with the Swipe functionality turned off, but the console warn message is still generated.

Additionally, are there plans to migrate this Widget to use the Swipe Component? I am going to attempt to migrate this Widget and see if that fixes the issue above.
Image

I was able to get the layers to load by replacing the function to create the Swipe Widget with code to create a Swipe Component.
This caused the Swipe Component and both layers to load correctly, but blocked all map interactivity including zoom and pan.
const swipe = document.createElement('arcgis-swipe') swipe.leadingLayers = [nearmapLead] swipe.trailingLayers = [nearmapTrail] swipe.position = 50 swipe.view = jimuView.view as __esri.MapView swipe.id = 'compare-swipe'
Image

By removing the line that added the Swipe to the ui, I was able to restore map interactions, but I lost the visual divider and handle of the Swipe Component, as well as any way to control them. Both layers do load and you can see the seam between the images below.
Image

I also opened a Question on ESRI Community. https://community.esri.com/t5/arcgis-experience-builder-questions/using-swipe-component-in-experience-builder/m-p/1670712#M21861

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions