Merge remote-tracking branch 'upstream/pull/5565'
This commit is contained in:
commit
ea8e6a92c1
1 changed files with 2 additions and 11 deletions
|
@ -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();
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue