Skip to content

Commit

Permalink
Merge pull request Esri#1164 from crb04c/master
Browse files Browse the repository at this point in the history
Update DynamicMapLayer.js to work with token/proxy
  • Loading branch information
gavinr committed Sep 17, 2019
2 parents 65d789b + 88d92be commit c17f3bf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Layers/DynamicMapLayer.js
Expand Up @@ -179,10 +179,10 @@ export var DynamicMapLayer = RasterLayer.extend({
this.service.request('export', params, function (error, response) {
if (error) { return; } // we really can't do anything here but authenticate or requesterror will fire

if (this.options.token) {
if (this.options.token && response.href) {
response.href += ('?token=' + this.options.token);
}
if (this.options.proxy) {
if (this.options.proxy && response.href) {
response.href = this.options.proxy + '?' + response.href;
}
if (response.href) {
Expand Down

0 comments on commit c17f3bf

Please sign in to comment.