Skip to content

Commit

Permalink
Update DynamicMapLayer.js
Browse files Browse the repository at this point in the history
Fix for DynamicLayer and token/proxy with imageData response
  • Loading branch information
crb04c authored Sep 12, 2019
1 parent 65d789b commit 88d92be
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 88d92be

Please sign in to comment.