From 8ab479dbc3f25ed6bf5ae3a3e675606b87a9757c Mon Sep 17 00:00:00 2001 From: Benjamin Gerber Date: Mon, 1 May 2017 14:57:08 +0200 Subject: [PATCH 1/2] FeatureHash - Use same accuracy as in cgxp --- src/ol-ext/format/featurehash.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ol-ext/format/featurehash.js b/src/ol-ext/format/featurehash.js index 0eb8eee868f2..cc169fdb4d4d 100644 --- a/src/ol-ext/format/featurehash.js +++ b/src/ol-ext/format/featurehash.js @@ -194,7 +194,7 @@ ngeo.format.FeatureHash.CHAR64_ = * @const * @private */ -ngeo.format.FeatureHash.ACCURACY_ = 1; +ngeo.format.FeatureHash.ACCURACY_ = 0.1; /** From 5d394f0567abbcb74302b5afced359caea502a02 Mon Sep 17 00:00:00 2001 From: Benjamin Gerber Date: Mon, 1 May 2017 15:46:31 +0200 Subject: [PATCH 2/2] Update tests for featureHash --- test/spec/ol-ext/format/featurehash.spec.js | 1 + 1 file changed, 1 insertion(+) diff --git a/test/spec/ol-ext/format/featurehash.spec.js b/test/spec/ol-ext/format/featurehash.spec.js index 02de33b8bfdc..ddf4ae5764b0 100644 --- a/test/spec/ol-ext/format/featurehash.spec.js +++ b/test/spec/ol-ext/format/featurehash.spec.js @@ -18,6 +18,7 @@ describe('ngeo.format.FeatureHash', function() { var fhFormat; beforeEach(function() { + ngeo.format.FeatureHash.ACCURACY_ = 1; // Easier to test fhFormat = new ngeo.format.FeatureHash(); });