Fixed filter in gis maps

This commit is contained in:
danielmaya 2017-12-04 11:41:52 +01:00
parent 4d4cee2251
commit 87e2f4f3f9
1 changed files with 9 additions and 9 deletions

View File

@ -305,19 +305,19 @@ function hideFeatureByStatus(feature, status) {
switch (statusShow) { switch (statusShow) {
case 'bad': case 'bad':
if ((status == 1) || (status == 4)) if ((status == 1) || (status == 4) || (status == 100))
feature.style.display = ''; feature.style.display = '';
break; break;
case 'warning': case 'warning':
if (status == 2) if ((status == 2) || (status == 200))
feature.style.display = ''; feature.style.display = '';
break; break;
case 'ok': case 'ok':
if (status == 0) if ((status == 0) || (status == 300))
feature.style.display = ''; feature.style.display = '';
break; break;
case 'default': case 'default':
if ((status != 1) && (status != 4) && (status != 2) && (status != 0)) if ((status != 1) && (status != 4) && (status != 2) && (status != 0) && (status != 100) && (status != 200) && (status != 300))
feature.style.display = ''; feature.style.display = '';
break; break;
case 'all': case 'all':
@ -337,19 +337,19 @@ function isHideFeatureByStatus(status) {
switch (statusShow) { switch (statusShow) {
case 'bad': case 'bad':
if ((status == 1) || (status == 4)) if ((status == 1) || (status == 4) || (status == 100))
returnVar = false; returnVar = false;
break; break;
case 'warning': case 'warning':
if (status == 2) if ((status == 2) || (status == 200))
returnVar = false; returnVar = false;
break; break;
case 'ok': case 'ok':
if (status == 0) if ((status == 0) || (status == 300))
returnVar = false; returnVar = false;
break; break;
case 'default': case 'default':
if ((status != 1) && (status != 4) && (status != 2) && (status != 0)) if ((status != 1) && (status != 4) && (status != 2) && (status != 0) && (status != 100) && (status != 200) && (status != 300))
returnVar = false; returnVar = false;
break; break;
case 'all': case 'all':