AnsweredAssumed Answered

Using a local service with the Cluster Layer JS GitHub code?

Question asked by Alexis on Aug 31, 2016
Latest reply on Aug 31, 2016 by Alexis



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.

// Add cluster renderer
clusterLayer = new ClusterFeatureLayer({
     //"url": "",
     "url": "",
     etc ...

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 ... one.  



Any ideas about how to make it work with my local service ?