Is it possibe to Swipe a feature/graphics layer using javascript API?

480
1
09-12-2013 02:59 AM
Pankajroy
New Contributor
Hi All,
Is is possible to swipe a feature/graphics layer using javascript API.
I am doing the same on Tiled and Dynamic layers. By clipping the style of _div of the layer.

var clipstring = "rect(" + topval + "px " + rightval + "px " + bottomval + "px " + leftval + "px)";
swipediv.style.clip = clipstring;

Here swipediv is the _div of the layer on which swipe tool is supposed to work.

I don't find any style property for the _div of feture/ graphics layer.

Any help on this would be highly appreciated.

Rgds,
Pankaj Roy
0 Kudos
1 Reply
MattDriscoll
Esri Contributor
This dijit will be in the next version of the API but if you need it now, it's on GitHub:
https://github.com/driskull/arcgis-dijit-layer-swipe-js

http://driskull.github.io/arcgis-dijit-layer-swipe-js/
0 Kudos