<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to implement masking for areas outside a polygons in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-implement-masking-for-areas-outside-a/m-p/295317#M27112</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Bhaskar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; In the JS API 4.11 this is possible using the new FeatureEffects class. 4.11 will be available soon (this week). In 3.x one way I can think to do this is to add a DefeenitionExpression to the boundary layer that only allows the selected boundary to show.&amp;nbsp;&lt;A href="https://developers.arcgis.com/javascript/3/jsapi/featurelayer-amd.html#setdefinitionexpression"&gt;https://developers.arcgis.com/javascript/3/jsapi/featurelayer-amd.html#setdefinitionexpression&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 28 Mar 2019 12:53:30 GMT</pubDate>
    <dc:creator>RobertScheitlin__GISP</dc:creator>
    <dc:date>2019-03-28T12:53:30Z</dc:date>
    <item>
      <title>How to implement masking for areas outside a polygons</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-implement-masking-for-areas-outside-a/m-p/295316#M27111</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a administrative polygon boundaries such as District, Mandal and Villages.&amp;nbsp;When i zoom to district,&amp;nbsp; I want to mask the area that is outside of polygon boundary. Right now i am using arcgis javascript api 3.27 for arcgis 10.2 server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The mask functionality exists on arcgis for desktop where on can clip to shape. I want a similar functionality for&amp;nbsp;&lt;SPAN&gt;arcgis javascript api. does anyone have any idea about it. earlier it existed for flex api but unfortunately i couldn't find it for javascript api&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/440613_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Mar 2019 07:14:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-implement-masking-for-areas-outside-a/m-p/295316#M27111</guid>
      <dc:creator>Bhaskar_ReddyPulsani</dc:creator>
      <dc:date>2019-03-28T07:14:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to implement masking for areas outside a polygons</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-implement-masking-for-areas-outside-a/m-p/295317#M27112</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Bhaskar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; In the JS API 4.11 this is possible using the new FeatureEffects class. 4.11 will be available soon (this week). In 3.x one way I can think to do this is to add a DefeenitionExpression to the boundary layer that only allows the selected boundary to show.&amp;nbsp;&lt;A href="https://developers.arcgis.com/javascript/3/jsapi/featurelayer-amd.html#setdefinitionexpression"&gt;https://developers.arcgis.com/javascript/3/jsapi/featurelayer-amd.html#setdefinitionexpression&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Mar 2019 12:53:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-implement-masking-for-areas-outside-a/m-p/295317#M27112</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2019-03-28T12:53:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to implement masking for areas outside a polygons</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-implement-masking-for-areas-outside-a/m-p/295318#M27113</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Robert,&amp;nbsp;&lt;/P&gt;&lt;P&gt;thank you very much for the reply. I have gone through the feature effects class and here is a sample that implements it:&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/sample-code/featureeffect-geometry/index.html"&gt;https://developers.arcgis.com/javascript/latest/sample-code/featureeffect-geometry/index.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The &lt;SPAN&gt;feature effects class is querying features to a buffered area or any desired area and its not clipping to that area. here's a snapshot of the class results:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="440776" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/440776_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What i am looking for is to have any number of features showing in this buffer zone or any area and then setting the outside boundary of this area to white like shown below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="440777" class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/440777_pastedImage_2.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As for the definition query, I have about 20 to 30 layers making a whole map and to implement so many queries is going to be difficult and also for line layers line national and state highways, the lines don't have any village or mandal or district specifications in their attributes.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Mar 2019 05:36:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-implement-masking-for-areas-outside-a/m-p/295318#M27113</guid>
      <dc:creator>Bhaskar_ReddyPulsani</dc:creator>
      <dc:date>2019-03-29T05:36:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to implement masking for areas outside a polygons</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-implement-masking-for-areas-outside-a/m-p/295319#M27114</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry I don't think I can help with that.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Mar 2019 12:55:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-implement-masking-for-areas-outside-a/m-p/295319#M27114</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2019-03-29T12:55:35Z</dc:date>
    </item>
  </channel>
</rss>

