Skip to content

Commit

Permalink
Merge pull request Esri#613 from jgravois/image-request
Browse files Browse the repository at this point in the history
ImageMapLayer and DynamicMapLayer need to use  'request', not 'get'
  • Loading branch information
patrickarlt committed Aug 10, 2015
2 parents a05fbd8 + 9dabf80 commit 8bb11b6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Layers/DynamicMapLayer.js
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ export var DynamicMapLayer = RasterLayer.extend({

_requestExport: function (params, bounds) {
if (this.options.f === 'json') {
this.service.get('export', params, function (error, response) {
this.service.request('export', params, function (error, response) {
if (error) { return; } // we really can't do anything here but authenticate or requesterror will fire
this._renderImage(response.href, bounds);
}, this);
Expand Down
2 changes: 1 addition & 1 deletion src/Layers/ImageMapLayer.js
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ export var ImageMapLayer = RasterLayer.extend({

_requestExport: function (params, bounds) {
if (this.options.f === 'json') {
this.service.get('exportImage', params, function (error, response) {
this.service.request('exportImage', params, function (error, response) {
if (error) { return; } // we really can't do anything here but authenticate or requesterror will fire
this._renderImage(response.href, bounds);
}, this);
Expand Down

0 comments on commit 8bb11b6

Please sign in to comment.