<?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 display only one type of a feature Layer in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/display-only-one-type-of-a-feature-layer/m-p/251227#M23280</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys,&amp;nbsp;I have &amp;nbsp;a feature layer with two types, by default all the types are displayed,&lt;/P&gt;&lt;P&gt;I am planning to add a checkbox list to check&amp;nbsp;or uncheck the type displayed, I have found the property "types" in featureLayers, and I have tried to use&amp;nbsp;it like that :&lt;/P&gt;&lt;DIV style="color: #d4d4d4; background-color: #1e1e1e; font-size: 14px;"&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe;"&gt;featureLayer9&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #569cd6;"&gt;new&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #4ec9b0;"&gt;FeatureLayer&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe;"&gt;url&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;+&lt;/SPAN&gt;&lt;SPAN style="color: #ce9178;"&gt;"9"&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;, {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe;"&gt;mode:&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe;"&gt;FeatureLayer&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe;"&gt;MODE_ONDEMAND&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe;"&gt;outFields:&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; [&lt;/SPAN&gt;&lt;SPAN style="color: #ce9178;"&gt;"*"&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;],&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe;"&gt;id:&lt;/SPAN&gt;&lt;SPAN style="color: #ce9178;"&gt;"troncon"&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe;"&gt;visible:&lt;/SPAN&gt;&lt;SPAN style="color: #569cd6;"&gt;true&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe;"&gt;types:&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;{&lt;/SPAN&gt;&lt;SPAN style="color: #ce9178;"&gt;"Name"&lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe;"&gt;:&lt;/SPAN&gt;&lt;SPAN style="color: #ce9178;"&gt;"Normale"&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt; });&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;but it didn't work, &amp;nbsp;all I wanna is the ability to extract the type of every single row in a feature layer, Can you help me ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;IMG alt="types of a feature layer" class="image-1 jive-image j-img-original" src="/legacyfs/online/356625_tyyy^pes.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/193995"&gt;Thomas Solow&lt;/A&gt;‌&amp;nbsp;&lt;A href="https://community.esri.com/migrated-users/3101"&gt;Robert Scheitlin, GISP&lt;/A&gt;&amp;nbsp;&lt;A href="https://community.esri.com/migrated-users/2691"&gt;Rebecca Strauch, GISP&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/community/gis/enterprise-gis/arcgis-for-server?sr=search&amp;amp;searchId=50b2150a-d8e9-451c-bb03-5d52971c589c&amp;amp;searchIndex=1"&gt;https://community.esri.com/community/gis/enterprise-gis/arcgis-for-server?sr=search&amp;amp;searchId=50b2150a-d8e9-451c-bb03-5d52971c589c&amp;amp;searchIndex=1&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 12 Jun 2017 13:14:34 GMT</pubDate>
    <dc:creator>SaraEL_MALKI</dc:creator>
    <dc:date>2017-06-12T13:14:34Z</dc:date>
    <item>
      <title>display only one type of a feature Layer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/display-only-one-type-of-a-feature-layer/m-p/251227#M23280</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys,&amp;nbsp;I have &amp;nbsp;a feature layer with two types, by default all the types are displayed,&lt;/P&gt;&lt;P&gt;I am planning to add a checkbox list to check&amp;nbsp;or uncheck the type displayed, I have found the property "types" in featureLayers, and I have tried to use&amp;nbsp;it like that :&lt;/P&gt;&lt;DIV style="color: #d4d4d4; background-color: #1e1e1e; font-size: 14px;"&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe;"&gt;featureLayer9&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #569cd6;"&gt;new&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #4ec9b0;"&gt;FeatureLayer&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe;"&gt;url&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;+&lt;/SPAN&gt;&lt;SPAN style="color: #ce9178;"&gt;"9"&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;, {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe;"&gt;mode:&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe;"&gt;FeatureLayer&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe;"&gt;MODE_ONDEMAND&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe;"&gt;outFields:&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; [&lt;/SPAN&gt;&lt;SPAN style="color: #ce9178;"&gt;"*"&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;],&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe;"&gt;id:&lt;/SPAN&gt;&lt;SPAN style="color: #ce9178;"&gt;"troncon"&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe;"&gt;visible:&lt;/SPAN&gt;&lt;SPAN style="color: #569cd6;"&gt;true&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe;"&gt;types:&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;{&lt;/SPAN&gt;&lt;SPAN style="color: #ce9178;"&gt;"Name"&lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe;"&gt;:&lt;/SPAN&gt;&lt;SPAN style="color: #ce9178;"&gt;"Normale"&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt; });&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;but it didn't work, &amp;nbsp;all I wanna is the ability to extract the type of every single row in a feature layer, Can you help me ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;IMG alt="types of a feature layer" class="image-1 jive-image j-img-original" src="/legacyfs/online/356625_tyyy^pes.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/193995"&gt;Thomas Solow&lt;/A&gt;‌&amp;nbsp;&lt;A href="https://community.esri.com/migrated-users/3101"&gt;Robert Scheitlin, GISP&lt;/A&gt;&amp;nbsp;&lt;A href="https://community.esri.com/migrated-users/2691"&gt;Rebecca Strauch, GISP&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/community/gis/enterprise-gis/arcgis-for-server?sr=search&amp;amp;searchId=50b2150a-d8e9-451c-bb03-5d52971c589c&amp;amp;searchIndex=1"&gt;https://community.esri.com/community/gis/enterprise-gis/arcgis-for-server?sr=search&amp;amp;searchId=50b2150a-d8e9-451c-bb03-5d52971c589c&amp;amp;searchIndex=1&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Jun 2017 13:14:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/display-only-one-type-of-a-feature-layer/m-p/251227#M23280</guid>
      <dc:creator>SaraEL_MALKI</dc:creator>
      <dc:date>2017-06-12T13:14:34Z</dc:date>
    </item>
    <item>
      <title>Re: display only one type of a feature Layer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/display-only-one-type-of-a-feature-layer/m-p/251228#M23281</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sara,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;The Types property is not part of the FeatureLayer constructor so it can not be used in the manner you are attempting. Your best best is to use&amp;nbsp;setDefinitionExpression with a SQL statement that will return only feature included in your type.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Jun 2017 13:51:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/display-only-one-type-of-a-feature-layer/m-p/251228#M23281</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2017-06-12T13:51:53Z</dc:date>
    </item>
  </channel>
</rss>

