<?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: Error adding a FeatureLayer in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/error-adding-a-featurelayer/m-p/246839#M22856</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mike,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I swap a featurelayer and point to one from Esri sample &lt;A href="https://developers.arcgis.com/javascript/beta/sample-code/symbols-points-3d/index.html" title="https://developers.arcgis.com/javascript/beta/sample-code/symbols-points-3d/index.html"&gt;3D symbols for points | ArcGIS API for JavaScript&lt;/A&gt; and the layer can load on map:&lt;/P&gt;&lt;P&gt;&lt;A href="https://sampleserver6.arcgisonline.com/arcgis/rest/services/USA/MapServer/3" title="https://sampleserver6.arcgisonline.com/arcgis/rest/services/USA/MapServer/3"&gt;Layer: Counties (ID: 3)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I do notice that your original feature layer's geometry type is:&amp;nbsp; &lt;SPAN style="color: #000000; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 14.4px;"&gt;&lt;STRONG&gt;esriGeometryMultiPatch&lt;/STRONG&gt;, &lt;/SPAN&gt;so far I didn't see this type of geometry in JavaScript type. I tried other services with&lt;STRONG&gt; &lt;SPAN style="color: #4d4d4d; font-family: 'Lucida Grande', 'Segoe UI', Arial, sans-serif;"&gt;"esriGeometryPoint", "esriGeometryPolygon" or "esriGeometryPolyline" &lt;/SPAN&gt;&lt;/STRONG&gt;are all works fine.&lt;/P&gt;&lt;P&gt;And I do notice that you have a SceneServer for that particular service, so I would recommend to use as SceneServer to view rather than featureLayer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can reference with this sample: &lt;A href="https://developers.arcgis.com/javascript/beta/sample-code/sandbox/sandbox.html?sample=layers-scenelayer" style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 14.4px; line-height: 1.5;" title="https://developers.arcgis.com/javascript/beta/sample-code/sandbox/sandbox.html?sample=layers-scenelayer"&gt;ArcGIS API for JavaScript Sandbox&lt;/A&gt;&lt;SPAN style="color: #000000; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 14.4px; line-height: 1.5;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 16 Feb 2016 22:54:46 GMT</pubDate>
    <dc:creator>YueWu1</dc:creator>
    <dc:date>2016-02-16T22:54:46Z</dc:date>
    <item>
      <title>Error adding a FeatureLayer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/error-adding-a-featurelayer/m-p/246838#M22855</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm getting the following error adding a layer to a map. &lt;SPAN style="color: #e23d39;"&gt;Error: Unsupported value for parameter: multipatchOption.(…)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to add a FeatureLayer to a Map that is displayed in a SceneView. The FeatureLayer was published as a featuresever from ArcGIS Pro. I also published a SceneLayer from the same ArcGIS Pro project and that can be added to a map.&lt;/P&gt;&lt;P&gt;The problem I'm trying to solve is to only show some of the features of the scenelayer. There is no query on SceneLayer, that's why I tried adding the FeatureLayer. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Oddly the error does not come after adding the FeatureLayer, that promise comes back resolved. It fails somewhere in the init.js script. I expeced to see building exteriors after adding this layer, but all I get is the error above.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is a short jsFiddle that illustrates the error: &lt;A href="https://jsfiddle.net/sugarray/cdtfau2c/" title="https://jsfiddle.net/sugarray/cdtfau2c/"&gt;Add a FeatureLayer - JSFiddle&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Feb 2016 17:51:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/error-adding-a-featurelayer/m-p/246838#M22855</guid>
      <dc:creator>MikeAnderson</dc:creator>
      <dc:date>2016-02-16T17:51:55Z</dc:date>
    </item>
    <item>
      <title>Re: Error adding a FeatureLayer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/error-adding-a-featurelayer/m-p/246839#M22856</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mike,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I swap a featurelayer and point to one from Esri sample &lt;A href="https://developers.arcgis.com/javascript/beta/sample-code/symbols-points-3d/index.html" title="https://developers.arcgis.com/javascript/beta/sample-code/symbols-points-3d/index.html"&gt;3D symbols for points | ArcGIS API for JavaScript&lt;/A&gt; and the layer can load on map:&lt;/P&gt;&lt;P&gt;&lt;A href="https://sampleserver6.arcgisonline.com/arcgis/rest/services/USA/MapServer/3" title="https://sampleserver6.arcgisonline.com/arcgis/rest/services/USA/MapServer/3"&gt;Layer: Counties (ID: 3)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I do notice that your original feature layer's geometry type is:&amp;nbsp; &lt;SPAN style="color: #000000; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 14.4px;"&gt;&lt;STRONG&gt;esriGeometryMultiPatch&lt;/STRONG&gt;, &lt;/SPAN&gt;so far I didn't see this type of geometry in JavaScript type. I tried other services with&lt;STRONG&gt; &lt;SPAN style="color: #4d4d4d; font-family: 'Lucida Grande', 'Segoe UI', Arial, sans-serif;"&gt;"esriGeometryPoint", "esriGeometryPolygon" or "esriGeometryPolyline" &lt;/SPAN&gt;&lt;/STRONG&gt;are all works fine.&lt;/P&gt;&lt;P&gt;And I do notice that you have a SceneServer for that particular service, so I would recommend to use as SceneServer to view rather than featureLayer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can reference with this sample: &lt;A href="https://developers.arcgis.com/javascript/beta/sample-code/sandbox/sandbox.html?sample=layers-scenelayer" style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 14.4px; line-height: 1.5;" title="https://developers.arcgis.com/javascript/beta/sample-code/sandbox/sandbox.html?sample=layers-scenelayer"&gt;ArcGIS API for JavaScript Sandbox&lt;/A&gt;&lt;SPAN style="color: #000000; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 14.4px; line-height: 1.5;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Feb 2016 22:54:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/error-adding-a-featurelayer/m-p/246839#M22856</guid>
      <dc:creator>YueWu1</dc:creator>
      <dc:date>2016-02-16T22:54:46Z</dc:date>
    </item>
    <item>
      <title>Re: Error adding a FeatureLayer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/error-adding-a-featurelayer/m-p/246840#M22857</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Yue,&lt;/P&gt;&lt;P&gt;I understand I can use a SceneServer. In fact I do have a "Add Scene Layer" button in the jsFiddle referenced above. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;The problem I'm trying to solve is to only show some of the features of the scenelayer. For instance, just show the "Atwood Center" building. Ther doesn't seem to be a way to query on SceneLayer, that's why I tried adding the FeatureLayer. If you know of another way I can filter out &lt;SPAN style="font-weight: bold; font-size: 14.4px; font-family: Verdana, Arial, Helvetica, sans-serif; color: #000000;"&gt;esriGeometryMultiPatch &lt;/SPAN&gt;geometries from a SceneLayer or FeatureLayer, or perhaps draw those geometries in a graphics layer that would be really helpful.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Feb 2016 13:55:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/error-adding-a-featurelayer/m-p/246840#M22857</guid>
      <dc:creator>MikeAnderson</dc:creator>
      <dc:date>2016-02-17T13:55:42Z</dc:date>
    </item>
    <item>
      <title>Re: Error adding a FeatureLayer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/error-adding-a-featurelayer/m-p/246841#M22858</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mike,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think that's a good suggestion if SceneServer can have query operation or if it is possible that allow esriGeometryMultiPatch to support show in featureLayer. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Currently for this beta version I suspect that's a limitation. I assume that's why you see the error message &lt;SPAN style="color: #e23d39; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Error: Unsupported value for parameter: multipatchOption.(…) &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Feb 2016 22:58:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/error-adding-a-featurelayer/m-p/246841#M22858</guid>
      <dc:creator>YueWu1</dc:creator>
      <dc:date>2016-02-17T22:58:05Z</dc:date>
    </item>
  </channel>
</rss>

