Select to view content in your preferred language

Linking swipe widget in ArcGIS Experience Builder to a feature info widget

216
4
07-03-2024 02:41 AM
JonathanHall3
New Contributor III

I wonder if it is possible to connect a feature info widget in ArcGIS Experience Builder to the Swipe widget.  So the Feature info widget would display the name of the map currently displayed with the swipe widget, and this would change when the swipe widget is dragged either left or right. Or would there be another widget which would display this information?

0 Kudos
4 Replies
TianWen
Esri Contributor

Could you provide more details about your use case? Typically, the Feature Info widget displays feature-level information, while the Swipe widget is used to compare layers or maps. It seems these functionalities cannot be connected in the scenario you described.

0 Kudos
JeffreyThompson2
MVP Regular Contributor

You just want the map title? You may be able to hack this by adding a Sketch layer to your webmaps and adding your map titles as text.

JeffreyThompson2_0-1721246137771.png

 

GIS Developer
City of Arlington, Texas
0 Kudos
JonathanHall3
New Contributor III

Thanks for this, but I wonder whether this workaround would work independent of the zoom/zoom out functions, or if the map is swiped to a different area - ie the text isn't fixed to any location?

0 Kudos
JeffreyThompson2
MVP Regular Contributor

There could also be a way to hack a Sidebar Widget into becoming a swipe tool. Then you could use regular Text Widgets as your map labels. (I'm currently out on leave, so I am not testing this out.)

  1. Make two copies of your webmap with the desired layers for both sides.
  2. Use the Map Actions to keep the extents of both maps in sync.
  3. Add a Sidebar Widget and place one map on each side.
  4. Make sure the Overlay and Resizable options on the Sidebar are turned on. Make the separator thicker and more visible and turn off the collapse button.  
GIS Developer
City of Arlington, Texas
0 Kudos