From: Anton Khorev Date: Tue, 28 Jan 2025 04:52:22 +0000 (+0300) Subject: Remove IE conditional compilation that limited max features X-Git-Tag: live~222^2 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/fda87833bac224504252f9bda6b3304b691ad5ab?hp=--cc Remove IE conditional compilation that limited max features --- fda87833bac224504252f9bda6b3304b691ad5ab diff --git a/app/assets/javascripts/index/layers/data.js b/app/assets/javascripts/index/layers/data.js index b972adbc2..812c35be9 100644 --- a/app/assets/javascripts/index/layers/data.js +++ b/app/assets/javascripts/index/layers/data.js @@ -85,18 +85,9 @@ OSM.initializeDataLayer = function (map) { /* * Modern browsers are quite happy showing far more than 100 features in - * the data browser, so increase the limit to 4000 by default, but keep - * it restricted to 500 for IE8 and 100 for older IEs. + * the data browser, so increase the limit to 4000 by default. */ - var maxFeatures = 4000; - - /*@cc_on - if (navigator.appVersion < 8) { - maxFeatures = 100; - } else if (navigator.appVersion < 9) { - maxFeatures = 500; - } - @*/ + const maxFeatures = 4000; if (dataLoader) dataLoader.abort();