am using the Swipe widget in ArcGIS Experience Builder to swipe between 2 different maps. I am wondering whether a text box could be displayed on the maps with dynamic text which would give the name of the map which is currently being shown with the swipe widget?
- that could maybe work with dynamic text referring to either the map in the foreground or the background? Or you could work with popups from both maps?Dirk– Dirk2024-07-16 13:52:25 +00:00Commented Jul 16, 2024 at 13:52
- yes. Something like dynamic text or a pop-up that would appear on a fixed place in the map window which would tell the user which map had been selected. I was wondering whether there is a text box in a fixed place on the map which would be in a fixed place, independent of a location, which would not move when the map was either scrolled or zoomed in/out.Jonathan Hall– Jonathan Hall2024-08-03 22:11:02 +00:00Commented Aug 3, 2024 at 22:11
1 Answer
I recently encountered a similar issue, but I wanted to illustrate the year that the map data represented, not a title. But the problem was the same - how do I get some text to show with the swipe maps that changes as you swipe?
My answer was: make a new feature layer of point features that have one attribute field: the text you'd like to display. Find a location in your map that will work for the text and drop your points. I used the same point location again and again to fix a location on the map. Then I edited the fields with the information I wanted to display, modified the symbology so that there was no point illustrated in the map, and then changed the text to display as I wished. I did have to make a new map for each swipe map which is kind of a bummer, but it's pretty slick now!
Kind of a PITA to just get a label/title to illustrate and change with the swipes, but there you have it! That was my way to do it. Good luck!