Select to view content in your preferred language

Not getting Style property for _div of feature/graphics layer in Arcgis Javascript.

589
1
09-12-2013 03:32 AM
Pankajroy
Emerging Contributor
Hi,

Anyone has any idea about the _div property and it's style for a layer in Arcgis Javascript.

I am getting the style of _div for a tiled layer, dynamic layer and map.graphics but not for the feature layer and graphics layer.

Need to implement Swipe tool in Java Script.Swipe toll sholud work on the topemost layer irrespective of it's type (tiled/dynamic/feature layer). Any code snippet or link addressing my requiremnet will be highly appreciated.


Regards,
Pankaj Roy
0 Kudos
1 Reply
JasonZou
Frequent Contributor
Dynamic and Tiled map services are wrapped in DIV elements. But feature layers and graphics layers are wrapped in a SVG element. They do have _div property, but no _div.style. Try to use _dev.rawNode.style for feature layers and graphics layers.
0 Kudos