<?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 Using a local service with the Cluster Layer JS GitHub code? in Developers Questions</title>
    <link>https://community.esri.com/t5/developers-questions/using-a-local-service-with-the-cluster-layer-js/m-p/535319#M3627</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I’m trying to use my own layer with the &lt;A href="https://github.com/Esri/cluster-layer-js" rel="nofollow noopener noreferrer" target="_blank"&gt;Layer JS GitHub code&lt;/A&gt; with no success. That’s a local layer published by ArcGIS Server 10.3.1 which contains only points and I need to keep it private.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below you can see how I've replaced the original layer by my local one.&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="comment token"&gt;// Add cluster renderer&lt;/SPAN&gt;
clusterLayer &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;ClusterFeatureLayer&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="comment token"&gt;&lt;SPAN&gt;//"url": "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fservices.arcgis.com%2FP3ePLMYs2RVChkJx%2Farcgis%2Frest%2Fservices%2FWorld_Cities%2FFeatureServer%2F0" target="_blank"&gt;https://services.arcgis.com/P3ePLMYs2RVChkJx/arcgis/rest/services/World_Cities/FeatureServer/0&lt;/A&gt;&lt;SPAN&gt;",&lt;/SPAN&gt;&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="string token"&gt;"url"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Frtftwebarcgis.ae.riotinto.org%2Farcgis%2Frest%2Fservices%2Ftest%2Ftest%2FFeatureServer%2F0" target="_blank"&gt;https://rtftwebarcgis.ae.riotinto.org/arcgis/rest/services/test/test/FeatureServer/0&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; etc &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;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;However, it works if I use the same data and&amp;nbsp;create a new&amp;nbsp;service shared as public in ArcGIS Online. Therefore, I guess&amp;nbsp;that the service&amp;nbsp;itself is fine and that should be a network or security issue. For some reasons, it doesn't like my local service and prefer a &amp;nbsp;&lt;A href="https://services.arcgis.com/etc" rel="nofollow noopener noreferrer" target="_blank"&gt;https://services.arcgis.com/etc&lt;/A&gt;&amp;nbsp;... one.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas about how to make it work with my local service ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 23:15:41 GMT</pubDate>
    <dc:creator>MetralAlexis</dc:creator>
    <dc:date>2021-12-11T23:15:41Z</dc:date>
    <item>
      <title>Using a local service with the Cluster Layer JS GitHub code?</title>
      <link>https://community.esri.com/t5/developers-questions/using-a-local-service-with-the-cluster-layer-js/m-p/535319#M3627</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I’m trying to use my own layer with the &lt;A href="https://github.com/Esri/cluster-layer-js" rel="nofollow noopener noreferrer" target="_blank"&gt;Layer JS GitHub code&lt;/A&gt; with no success. That’s a local layer published by ArcGIS Server 10.3.1 which contains only points and I need to keep it private.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below you can see how I've replaced the original layer by my local one.&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="comment token"&gt;// Add cluster renderer&lt;/SPAN&gt;
clusterLayer &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;ClusterFeatureLayer&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="comment token"&gt;&lt;SPAN&gt;//"url": "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fservices.arcgis.com%2FP3ePLMYs2RVChkJx%2Farcgis%2Frest%2Fservices%2FWorld_Cities%2FFeatureServer%2F0" target="_blank"&gt;https://services.arcgis.com/P3ePLMYs2RVChkJx/arcgis/rest/services/World_Cities/FeatureServer/0&lt;/A&gt;&lt;SPAN&gt;",&lt;/SPAN&gt;&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="string token"&gt;"url"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Frtftwebarcgis.ae.riotinto.org%2Farcgis%2Frest%2Fservices%2Ftest%2Ftest%2FFeatureServer%2F0" target="_blank"&gt;https://rtftwebarcgis.ae.riotinto.org/arcgis/rest/services/test/test/FeatureServer/0&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; etc &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;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;However, it works if I use the same data and&amp;nbsp;create a new&amp;nbsp;service shared as public in ArcGIS Online. Therefore, I guess&amp;nbsp;that the service&amp;nbsp;itself is fine and that should be a network or security issue. For some reasons, it doesn't like my local service and prefer a &amp;nbsp;&lt;A href="https://services.arcgis.com/etc" rel="nofollow noopener noreferrer" target="_blank"&gt;https://services.arcgis.com/etc&lt;/A&gt;&amp;nbsp;... one.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas about how to make it work with my local service ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 23:15:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/using-a-local-service-with-the-cluster-layer-js/m-p/535319#M3627</guid>
      <dc:creator>MetralAlexis</dc:creator>
      <dc:date>2021-12-11T23:15:41Z</dc:date>
    </item>
    <item>
      <title>Re: Using a local service with the Cluster Layer JS GitHub code?</title>
      <link>https://community.esri.com/t5/developers-questions/using-a-local-service-with-the-cluster-layer-js/m-p/535320#M3628</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I see that the only thing which is not pointing locally is the reference to the&amp;nbsp;ArcGIS API for JavaScript (&lt;A class="link-titled" href="https://js.arcgis.com/3.15compact" title="https://js.arcgis.com/3.15compact"&gt;https://js.arcgis.com/3.15compact&lt;/A&gt;).&amp;nbsp;Could it be because we don't host it in our web server ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Aug 2016 20:29:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/using-a-local-service-with-the-cluster-layer-js/m-p/535320#M3628</guid>
      <dc:creator>MetralAlexis</dc:creator>
      <dc:date>2016-08-31T20:29:07Z</dc:date>
    </item>
  </channel>
</rss>

