From 11dfff713eee295b7acf0e1e46982dff925c1ab9 Mon Sep 17 00:00:00 2001 From: webgisdeveloper Date: Tue, 25 Jan 2022 10:21:35 -0500 Subject: [PATCH] #177 fix X and Y incorrectly specified --- simccs_maptool/static/js/L.TileLayer.BetterWMS.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/simccs_maptool/static/js/L.TileLayer.BetterWMS.js b/simccs_maptool/static/js/L.TileLayer.BetterWMS.js index 43eb4a8..f778ebf 100644 --- a/simccs_maptool/static/js/L.TileLayer.BetterWMS.js +++ b/simccs_maptool/static/js/L.TileLayer.BetterWMS.js @@ -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); },