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 authored Sep 17, 2019
2 parents 05ee5bc + d06ce31 commit dc3df62
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Layers/DynamicMapLayer.js
Original file line number Diff line number Diff line change
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 dc3df62

Please sign in to comment.