AnsweredAssumed Answered

Load Secure Online Map

Question asked by yifeng.zou on Aug 2, 2018

Hi, I am trying to load a secure web map, the code looks like this



This works fine with unsecured  map, but for secured  map, the layer.load() method
just never return resolve promise, But in the network, the call finished with 200 and an error
message said token required. I already have the code using identity manager to set the credential
and I can see base map loaded, just not the operational layers inside.


What I have observed looks like if the layer is secured and hosted , the layer.load method
doesn't automatically using the available token to make the call, also didn't resolve the promise


Anyway to make this work? Thanks!