AnsweredAssumed Answered

Use WMSLayer with esriId.registerToken

Question asked by SupakornGOT on Apr 18, 2019

Anybody help me? Can I use both WMSLayer and esriId.registerToken in one map? 

I can use only one. I need to use both codes.
Part of my code :

 

//// This code when use dynamic token
//esriConfig.defaults.io.alwaysUseProxy = false;
// esriId.registerToken({
      //    server: "https://<domain>/arcgis/rest/services",
      //    token: "Xv0xgskXC39-fxO_J048uuHB5yskj2kM0L6k_ypxxkPvAQZ6jc7n69gJyoNe821U"
      //  });
// urlUtils.addProxyRule({
      //    urlPrefix: "http://<ipserver>:8090/",
      //    proxyUrl: PROXY_URL
// });
//// This code when use WMS, WFS Layer
//esriConfig.defaults.io.alwaysUseProxy = true;

Outcomes