|
69 | 69 | subName = subChartNames[i]; |
70 | 70 | subsToDisplay[subName] = false; |
71 | 71 | } |
72 | | - sortingOptions = ['normal', 'datelatitude', 'datelongitude', 'datetotalarea', 'latitude', 'longitude', 'totalarea', 'silt', 'siltsand', 'sand', 'gravel', |
| 72 | + sortingOptions = ['unsorted', 'normal', 'datelatitude', 'datelongitude', 'datetotalarea', 'latitude', 'longitude', 'totalarea', 'silt', 'siltsand', 'sand', 'gravel', |
73 | 73 | 'totalhcsort', 'lmw', 'hmw', 'ices7', 'allpcbs', 'datelmw', 'datehmw', 'dateices7', 'dateallpcbs']; |
74 | 74 | sortButtonGroups['area'] = [...sortingOptions.filter(option => option.includes('area')), ...subChartNames.filter(option => option.includes('area'))]; |
75 | 75 | sortButtonGroups['PCB data'] = [...sortingOptions.filter(option => option.includes('pcb') || option.includes('ices7'))];/*, |
@@ -692,8 +692,20 @@ function importData() { |
692 | 692 | } |
693 | 693 | checkboxParameters(suppliedParams, 'selcharts', dataSheetNamesCheckboxes); |
694 | 694 | checkboxParameters(suppliedParams, 'subcharts', subChartNames); |
695 | | - const noninter = suppliedParams.get('noninter'); |
696 | | - if (!noninter) { |
| 695 | + const featuresParams = suppliedParams.get('features'); |
| 696 | + if (featuresParams) { |
| 697 | + features = featuresParams.split(',').map(feature => feature.trim()); // Split comma-separated features |
| 698 | + if(!features.includes('nomap')) { |
| 699 | + const everythingMaps = document.getElementById('everything-maps'); |
| 700 | + everythingMaps.style.display = 'inline'; |
| 701 | + } |
| 702 | + if(!features.includes('noninter')) { |
| 703 | + const everything = document.getElementById('everything'); |
| 704 | + everything.style.display = 'inline'; |
| 705 | + } |
| 706 | + } else { |
| 707 | + const everythingMaps = document.getElementById('everything-maps'); |
| 708 | + everythingMaps.style.display = 'inline'; |
697 | 709 | const everything = document.getElementById('everything'); |
698 | 710 | everything.style.display = 'inline'; |
699 | 711 | } |
|
0 commit comments