LayerSwipe and Basemaps

700
2
Jump to solution
10-02-2013 08:00 AM
JeffPace
MVP Alum
I'm liking the new Layerswipe concept.  Is it possible to use it to swipe between two basemaps (index 0) and leave all the operational/overlay layers unaffected?

Can't seem to figure out how to do that.

thanks
0 Kudos
1 Solution

Accepted Solutions
KellyHutchins
Esri Frequent Contributor
Here's a fiddle showing the LayerSwipe with basemaps:

http://jsfiddle.net/mAbzx/

And if you are using the basemap constructor option here's an example showing that approach:

http://jsfiddle.net/mAbzx/1/

View solution in original post

0 Kudos
2 Replies
KellyHutchins
Esri Frequent Contributor
Here's a fiddle showing the LayerSwipe with basemaps:

http://jsfiddle.net/mAbzx/

And if you are using the basemap constructor option here's an example showing that approach:

http://jsfiddle.net/mAbzx/1/
0 Kudos
JeffPace
MVP Alum
I appreciate that.  Since we use a basemap gallery im going to have to modify to get the current basemap and swipe based on another layer, but that is totally doable.

Thank you!
0 Kudos