<?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: Create a FeatureLayer with client-side graphics, attributes missing in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/create-a-featurelayer-with-client-side-graphics/m-p/473655#M43927</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Xiaowen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have screenshots or code you can share? Off the top of my head I would think that perhaps your shapefile is not a zip folder or your zip folder does not have all the necessary files in it to draw it with attributes.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 20 Jun 2019 21:05:47 GMT</pubDate>
    <dc:creator>DavidWilson3</dc:creator>
    <dc:date>2019-06-20T21:05:47Z</dc:date>
    <item>
      <title>Create a FeatureLayer with client-side graphics, attributes missing</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/create-a-featurelayer-with-client-side-graphics/m-p/473654#M43926</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I use the following sample to add a shapefile to FeatureLayer but attributes won't carry over.&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://developers.arcgis.com/javascript/latest/sample-code/sandbox/index.html?sample=layers-featurelayer-collection" title="https://developers.arcgis.com/javascript/latest/sample-code/sandbox/index.html?sample=layers-featurelayer-collection"&gt;ArcGIS API for JavaScript Sandbox&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any idea how I can retain all attributes from shapefile?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Jun 2019 20:46:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/create-a-featurelayer-with-client-side-graphics/m-p/473654#M43926</guid>
      <dc:creator>XiaowenHuang</dc:creator>
      <dc:date>2019-06-20T20:46:16Z</dc:date>
    </item>
    <item>
      <title>Re: Create a FeatureLayer with client-side graphics, attributes missing</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/create-a-featurelayer-with-client-side-graphics/m-p/473655#M43927</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Xiaowen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have screenshots or code you can share? Off the top of my head I would think that perhaps your shapefile is not a zip folder or your zip folder does not have all the necessary files in it to draw it with attributes.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Jun 2019 21:05:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/create-a-featurelayer-with-client-side-graphics/m-p/473655#M43927</guid>
      <dc:creator>DavidWilson3</dc:creator>
      <dc:date>2019-06-20T21:05:47Z</dc:date>
    </item>
    <item>
      <title>Re: Create a FeatureLayer with client-side graphics, attributes missing</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/create-a-featurelayer-with-client-side-graphics/m-p/473656#M43928</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You just need to specify the Feature Layers fields and outFields properties in that sample.&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;            &lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; featureLayer &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;new&lt;/SPAN&gt; &lt;SPAN class="token class-name"&gt;FeatureLayer&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
              popupTemplate&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; popupTemplate&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
              objectIdField&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"FID"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
              source&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; graphics&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
              outFields&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'*'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
              fields&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; layer&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;layerDefinition&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;fields
            &lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 20:56:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/create-a-featurelayer-with-client-side-graphics/m-p/473656#M43928</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2021-12-11T20:56:37Z</dc:date>
    </item>
    <item>
      <title>Re: Create a FeatureLayer with client-side graphics, attributes missing</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/create-a-featurelayer-with-client-side-graphics/m-p/473657#M43929</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks! adding "fields: layer.layerDefinition.fields" solved the issue.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Jun 2019 12:23:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/create-a-featurelayer-with-client-side-graphics/m-p/473657#M43929</guid>
      <dc:creator>XiaowenHuang</dc:creator>
      <dc:date>2019-06-21T12:23:55Z</dc:date>
    </item>
  </channel>
</rss>

