Skip to content

Commit

Permalink
set f=json automatically when proxied
Browse files Browse the repository at this point in the history
  • Loading branch information
jgravois committed Mar 1, 2015
1 parent bddce04 commit d1d0ca5
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 d1d0ca5

Please sign in to comment.