Skip to content

Commit

Permalink
#177 fix X and Y incorrectly specified
Browse files Browse the repository at this point in the history
  • Loading branch information
webgisdeveloper committed Jan 25, 2022
1 parent 303e491 commit 11dfff7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions simccs_maptool/static/js/L.TileLayer.BetterWMS.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ L.TileLayer.BetterWMS = L.TileLayer.WMS.extend({
propertyName: this.wmsParams.propertyName
};

params[params.version === '1.3.0' ? 'i' : 'x'] = point.x;
params[params.version === '1.3.0' ? 'j' : 'y'] = point.y;
params[params.version === '1.3.0' ? 'i' : 'x'] = Math.round(point.x);
params[params.version === '1.3.0' ? 'j' : 'y'] = Math.round(point.y);

return this._url + L.Util.getParamString(params, this._url, true);
},
Expand Down

0 comments on commit 11dfff7

Please sign in to comment.