<?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: 400 Error - adding hosted feature layer view to the app in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/400-error-adding-hosted-feature-layer-view-to-the/m-p/1095328#M74551</link>
    <description>&lt;P&gt;The URL seems to be for a FeatureLayer so try:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var dynSvc = new FeatureLayer("https://services8.arcgis.com/HPJsu0I9OjNDnQ7I/arcgis/rest/services/tl_2020_42_tabblock20_ViewLayer/FeatureServer/0", {"opacity": 0.5});&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 03 Sep 2021 15:42:44 GMT</pubDate>
    <dc:creator>JohnGrayson</dc:creator>
    <dc:date>2021-09-03T15:42:44Z</dc:date>
    <item>
      <title>400 Error - adding hosted feature layer view to the app</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/400-error-adding-hosted-feature-layer-view-to-the/m-p/1095296#M74547</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am getting 400 error while adding hosted feature layer view to the app. Any tip on how to do this is much appreciated!!&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;  var basemapLayer = new ArcGISTiledMapServiceLayer(basemap.url, {
                    id: "defaultBasemap",
                    visible: true
                });

 var dynSvc = new ArcGISDynamicMapServiceLayer("https://services8.arcgis.com/HPJsu0I9OjNDnQ7I/arcgis/rest/services/tl_2020_42_tabblock20_ViewLayer/FeatureServer",
                    {
                        "opacity": 0.5
                    });
this.map.addLayers([basemapLayer, dynSvc])&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Chitra&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Sep 2021 14:09:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/400-error-adding-hosted-feature-layer-view-to-the/m-p/1095296#M74547</guid>
      <dc:creator>ChitraKrishnan</dc:creator>
      <dc:date>2021-09-03T14:09:02Z</dc:date>
    </item>
    <item>
      <title>Re: 400 Error - adding hosted feature layer view to the app</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/400-error-adding-hosted-feature-layer-view-to-the/m-p/1095321#M74550</link>
      <description>&lt;P&gt;It looks like this Feature Layer requires credentials to access.&lt;BR /&gt;Does your application expect the user to sign in? If so, should every user able to access the application also be able to access that feature service, or only certain users?&lt;BR /&gt;Alternatively, does the application not have a sign in, and anyone using the application should be able to view the layer?&lt;/P&gt;</description>
      <pubDate>Fri, 03 Sep 2021 15:13:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/400-error-adding-hosted-feature-layer-view-to-the/m-p/1095321#M74550</guid>
      <dc:creator>CourtneyMenikheim</dc:creator>
      <dc:date>2021-09-03T15:13:43Z</dc:date>
    </item>
    <item>
      <title>Re: 400 Error - adding hosted feature layer view to the app</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/400-error-adding-hosted-feature-layer-view-to-the/m-p/1095328#M74551</link>
      <description>&lt;P&gt;The URL seems to be for a FeatureLayer so try:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var dynSvc = new FeatureLayer("https://services8.arcgis.com/HPJsu0I9OjNDnQ7I/arcgis/rest/services/tl_2020_42_tabblock20_ViewLayer/FeatureServer/0", {"opacity": 0.5});&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Sep 2021 15:42:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/400-error-adding-hosted-feature-layer-view-to-the/m-p/1095328#M74551</guid>
      <dc:creator>JohnGrayson</dc:creator>
      <dc:date>2021-09-03T15:42:44Z</dc:date>
    </item>
    <item>
      <title>Re: 400 Error - adding hosted feature layer view to the app</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/400-error-adding-hosted-feature-layer-view-to-the/m-p/1095343#M74553</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Thanks for the reply. I set the share level to public. After setting it as a featurelayer the error is gone. But the layer is not visible on the map. Any thought on this?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Chitra&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Sep 2021 16:16:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/400-error-adding-hosted-feature-layer-view-to-the/m-p/1095343#M74553</guid>
      <dc:creator>ChitraKrishnan</dc:creator>
      <dc:date>2021-09-03T16:16:31Z</dc:date>
    </item>
    <item>
      <title>Re: 400 Error - adding hosted feature layer view to the app</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/400-error-adding-hosted-feature-layer-view-to-the/m-p/1095476#M74555</link>
      <description>&lt;P&gt;The layer displays via the online Map Viewer, but there are many complex features at the default minimum scale, so you might want to adjust it so the feature visibility is more appropriate for the type of data.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JohnGrayson_0-1630708670346.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/22412iC3D8727B8377FE04/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JohnGrayson_0-1630708670346.png" alt="JohnGrayson_0-1630708670346.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Sep 2021 22:38:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/400-error-adding-hosted-feature-layer-view-to-the/m-p/1095476#M74555</guid>
      <dc:creator>JohnGrayson</dc:creator>
      <dc:date>2021-09-03T22:38:21Z</dc:date>
    </item>
  </channel>
</rss>

