Hi,
I’m trying to use my own layer with the Layer JS GitHub code 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.
Below you can see how I've replaced the original layer by my local one.
<SPAN class="comment token">// Add cluster renderer</SPAN>
clusterLayer <SPAN class="operator token">=</SPAN> <SPAN class="keyword token">new</SPAN> <SPAN class="token class-name">ClusterFeatureLayer</SPAN><SPAN class="punctuation token">(</SPAN><SPAN class="punctuation token">{</SPAN>
<SPAN class="comment token"><SPAN>//"url": "</SPAN><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">https://services.arcgis.com/P3ePLMYs2RVChkJx/arcgis/rest/services/World_Cities/FeatureServer/0</A><SPAN>",</SPAN></SPAN>
<SPAN class="string token">"url"</SPAN><SPAN class="punctuation token">:</SPAN> <SPAN class="string token"><SPAN>"</SPAN><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">https://rtftwebarcgis.ae.riotinto.org/arcgis/rest/services/test/test/FeatureServer/0</A><SPAN>"</SPAN></SPAN><SPAN class="punctuation token">,</SPAN>
etc <SPAN class="punctuation token">.</SPAN><SPAN class="punctuation token">.</SPAN><SPAN class="punctuation token">.</SPAN><SPAN class="line-numbers-rows"><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN></SPAN>However, it works if I use the same data and create a new service shared as public in ArcGIS Online. Therefore, I guess that the service 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 https://services.arcgis.com/etc ... one.
Any ideas about how to make it work with my local service ?
Thanks.