AnsweredAssumed Answered

Load secured private layer with app login

Question asked by rayhan on Apr 4, 2019
Latest reply on Apr 9, 2019 by rayhan



I'm developing angular/ruby on rails web application. For arcgis we are using javascript api. Is it possible to access private layers hosted on arcgis online with app id.


Layer.fromPortalItem({ portalItem: { // autocasts new PortalItem() id: "8444e275037549c1acab02d2626daaee" } }).then(function(layer){ // add the layer to the map map.add(layer); });