Ben, your solution works partially. I remove the token from the layer url after I've added the layers to the map. this.map.addLayers(layers);
array.forEach(layers, function (l) {
l.url = l.url.split('?token')[0];
}, this); The layer gets added to the map and loads image request succesfully. The legend also works fine, but identifying on a layers fails. The identify request doesn't contain a token anymore after I removed the token from the layer.url. It seems that an identify request doesn't add the token as a legend request does. Do you have a solution for this as well? Regards, Joep Ronde
... View more