<?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: Count layer in hosted feature service in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/count-layer-in-hosted-feature-service/m-p/650809#M60679</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Robert,&lt;/P&gt;&lt;P&gt;this is what I searched.&lt;/P&gt;&lt;P&gt;Thank you very much.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 10 Aug 2016 18:41:29 GMT</pubDate>
    <dc:creator>KarstenRank</dc:creator>
    <dc:date>2016-08-10T18:41:29Z</dc:date>
    <item>
      <title>Count layer in hosted feature service</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/count-layer-in-hosted-feature-service/m-p/650807#M60677</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;is it possible to get the number of feature layer of a hosted featue service with javascript api?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Karsten&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Aug 2016 18:27:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/count-layer-in-hosted-feature-service/m-p/650807#M60677</guid>
      <dc:creator>KarstenRank</dc:creator>
      <dc:date>2016-08-10T18:27:02Z</dc:date>
    </item>
    <item>
      <title>Re: Count layer in hosted feature service</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/count-layer-in-hosted-feature-service/m-p/650808#M60678</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Karsten,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;&amp;nbsp; you could use esriRequest to get the layers array from the result.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;require([
&amp;nbsp; "esri/request"
], function(esriRequest) {
&lt;SPAN&gt;&amp;nbsp; var layerUrl = "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fyourserver%2Farcgis%2Frest%2Fservices%2Fyourservice%2FFeatureServer" target="_blank"&gt;http://yourserver/arcgis/rest/services/yourservice/FeatureServer&lt;/A&gt;&lt;SPAN&gt;";&lt;/SPAN&gt;
&amp;nbsp; var layersRequest = esriRequest({
&amp;nbsp;&amp;nbsp;&amp;nbsp; url: layerUrl,
&amp;nbsp;&amp;nbsp;&amp;nbsp; content: { f: "json" },
&amp;nbsp;&amp;nbsp;&amp;nbsp; handleAs: "json",
&amp;nbsp;&amp;nbsp;&amp;nbsp; callbackParamName: "callback"
&amp;nbsp; });
&amp;nbsp; layersRequest.then(
&amp;nbsp;&amp;nbsp;&amp;nbsp; function(response) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; console.log("Success: ", response.layers);
&amp;nbsp; }, function(error) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; console.log("Error: ", error.message);
&amp;nbsp; });
});&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 03:35:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/count-layer-in-hosted-feature-service/m-p/650808#M60678</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2021-12-12T03:35:43Z</dc:date>
    </item>
    <item>
      <title>Re: Count layer in hosted feature service</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/count-layer-in-hosted-feature-service/m-p/650809#M60679</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Robert,&lt;/P&gt;&lt;P&gt;this is what I searched.&lt;/P&gt;&lt;P&gt;Thank you very much.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Aug 2016 18:41:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/count-layer-in-hosted-feature-service/m-p/650809#M60679</guid>
      <dc:creator>KarstenRank</dc:creator>
      <dc:date>2016-08-10T18:41:29Z</dc:date>
    </item>
  </channel>
</rss>

