<?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: Get attributes from polygon featureLayer with transparent fill using onClick even in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-attributes-from-polygon-featurelayer-with/m-p/229436#M21406</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can handle this client side by setting your polygon fill symbols to be completely transparent. Assuming you're using a simple renderer, the code is as simple as:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;dojo.connect(featureLayer, "onLoad", function() { &amp;nbsp; featureLayer.renderer.symbol.setColor(new dojo.Color([0, 0, 0, 0])); &amp;nbsp; map.addLayer(featureLayer); });&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you're using a class breaks or unique value renderer, each symbol would need to be modified. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here's a working example:&amp;nbsp; &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://jsfiddle.net/PB4Yc/" rel="nofollow" target="_blank"&gt;http://jsfiddle.net/PB4Yc/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you comment out line 35 you end up with only click-able outlines, like you've described.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 31 Jul 2012 17:25:32 GMT</pubDate>
    <dc:creator>derekswingley1</dc:creator>
    <dc:date>2012-07-31T17:25:32Z</dc:date>
    <item>
      <title>Get attributes from polygon featureLayer with transparent fill using onClick event</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-attributes-from-polygon-featurelayer-with/m-p/229435#M21405</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I've added a polygon featureLayer from a published map service (created from a .mxd) to my map.&amp;nbsp; In my .mxd, the polygon is symbolized with a solid outline and transparent (no color) fill.&amp;nbsp; Unlike other featureLayers (points and lines), the polygon layer does not return attributes or trigger an onClick event that would open an infoWindow when clicking inside the polygon.&amp;nbsp; I can trigger the onClick event when clicking on the polygon outline.&amp;nbsp; Is there a way to configure the symbology in my .mxd so that the onClick event can be fired when clicking inside the polygon?&amp;nbsp; Is this something i have to configure when adding the layer to my web map?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jul 2012 16:48:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-attributes-from-polygon-featurelayer-with/m-p/229435#M21405</guid>
      <dc:creator>AnthonyThomas1</dc:creator>
      <dc:date>2012-07-31T16:48:52Z</dc:date>
    </item>
    <item>
      <title>Re: Get attributes from polygon featureLayer with transparent fill using onClick even</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-attributes-from-polygon-featurelayer-with/m-p/229436#M21406</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can handle this client side by setting your polygon fill symbols to be completely transparent. Assuming you're using a simple renderer, the code is as simple as:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;dojo.connect(featureLayer, "onLoad", function() { &amp;nbsp; featureLayer.renderer.symbol.setColor(new dojo.Color([0, 0, 0, 0])); &amp;nbsp; map.addLayer(featureLayer); });&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you're using a class breaks or unique value renderer, each symbol would need to be modified. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here's a working example:&amp;nbsp; &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://jsfiddle.net/PB4Yc/" rel="nofollow" target="_blank"&gt;http://jsfiddle.net/PB4Yc/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you comment out line 35 you end up with only click-able outlines, like you've described.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jul 2012 17:25:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-attributes-from-polygon-featurelayer-with/m-p/229436#M21406</guid>
      <dc:creator>derekswingley1</dc:creator>
      <dc:date>2012-07-31T17:25:32Z</dc:date>
    </item>
    <item>
      <title>Re: Get attributes from polygon featureLayer with transparent fill using onClick even</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-attributes-from-polygon-featurelayer-with/m-p/229437#M21407</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks Derek, this is what i was looking for!&amp;nbsp; Is this the only method, by design?&amp;nbsp; Is there no way to configure this from the .mxd side?&amp;nbsp; Also, do you have any guidance as to how to render this correctly in the legend?&amp;nbsp; I send layer info to the legend by connecting the onLayersAddResult method.&amp;nbsp; The symbol for the polygon layer is filled with black (not transparent).&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Aug 2012 17:26:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-attributes-from-polygon-featurelayer-with/m-p/229437#M21407</guid>
      <dc:creator>AnthonyThomas1</dc:creator>
      <dc:date>2012-08-01T17:26:42Z</dc:date>
    </item>
  </channel>
</rss>

