Skip to content

Commit

Permalink
Merge pull request Esri#468 from jgravois/patch-464
Browse files Browse the repository at this point in the history
set f=json automatically when proxied
  • Loading branch information
patrickarlt committed Mar 4, 2015
2 parents 7778ae7 + 4421381 commit 47998f9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Layers/DynamicMapLayer.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ EsriLeaflet.Layers.DynamicMapLayer = EsriLeaflet.Layers.RasterLayer.extend({
options.url = EsriLeaflet.Util.cleanUrl(url);
this._service = new EsriLeaflet.Services.MapService(options);
this._service.on('authenticationrequired requeststart requestend requesterror requestsuccess', this._propagateEvent, this);
if (options.proxy){
options.f = 'json';
}
L.Util.setOptions(this, options);
},

Expand Down

0 comments on commit 47998f9

Please sign in to comment.