Merge remote-tracking branch 'upstream/pull/5565'

This commit is contained in:
Tom Hughes 2025-01-28 18:21:47 +00:00
commit ea8e6a92c1

View file

@ -85,18 +85,9 @@ OSM.initializeDataLayer = function (map) {
/* /*
* Modern browsers are quite happy showing far more than 100 features in * 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 * the data browser, so increase the limit to 4000 by default.
* it restricted to 500 for IE8 and 100 for older IEs.
*/ */
var maxFeatures = 4000; const maxFeatures = 4000;
/*@cc_on
if (navigator.appVersion < 8) {
maxFeatures = 100;
} else if (navigator.appVersion < 9) {
maxFeatures = 500;
}
@*/
if (dataLoader) dataLoader.abort(); if (dataLoader) dataLoader.abort();