Does a GraphicLayer support clip-path?

636
1
02-19-2013 05:23 PM
AlexeiPotiagalov
New Contributor
I create a simple graphic layer, add a "clip-path" property to it, and clippath does not work. Is there anything in ArcGIS Javascript API preventing a custom clip-path from working?

More details:

  • I use version 3.3 of the API.

  • I use jQuery to manipulate the DOM and create a <clipPath> SVG element and then add a reference to it to the graphic layer's <g> element. Here is what my code looks like:


<clipPath id="leftClippingRegion"><rect id="leftClippingRegionRect" x="0" y="0" width="100" height="700"></rect></clipPath>
<g id="graphicsLayer1_layer" transform="matrix(1.00000000,0.00000000,0.00000000,1.00000000,0.00000000,0.00000000)" style="display: block;" clip-path="url(#leftClippingRegion)">...

Thanks,
Alexei
0 Kudos
1 Reply
AlexeiPotiagalov
New Contributor
I have solved the problem by replacing jQuery with d3. The d3-generated code looks exactly the same as the one generated by jQuery. However, it works now. Go figure!

Alexei
0 Kudos