Select to view content in your preferred language

Can the swipe widget turn one layer off while turning another on?

616
1
10-26-2017 11:18 AM
ChrisMathers1
Frequent Contributor

I am putting a simple map together to embed in a page about an impending flood zone update. The symbology for the two layers, current zones and draft zones, is the same so its not very easy to interpret where changes are happening. I'm using the swipe widget in JS-API 3.22 to turn the draft zones on with the current zones always on.

Can I do anything that will let me swipe the current flood zones off as the draft flood zones turn on? Here's a link to what I have now. It'll be iframed into a page with more information once I can get this worked out.

0 Kudos
1 Reply
RobertScheitlin__GISP
MVP Emeritus

Chris,

  No the Swipe widget is not able to turn off the layer on the other side of the swipe line. The way most handle this is to have two distinct symbologies to the two layer. Here is my site as an example of this:

Flood Zone Lookup