From bede2bac66e9c53c93d1ed36185b618fec62d60f Mon Sep 17 00:00:00 2001 From: Max Guglielmi Date: Sat, 13 Jun 2015 21:23:33 +1000 Subject: [PATCH] Added linked filters with disabled options demo --- dist/tablefilter/tablefilter.js | 70 +- examples/auto-filter.html | 18 +- examples/data-types.html | 730 ++++- examples/demo.html | 18 +- examples/grid-layout.html | 18 +- examples/linked-filters-disabled.html | 2632 +++++++++++++++++ examples/linked-filters.html | 32 +- examples/pagination.html | 18 +- src/modules/checkList.js | 38 +- src/modules/dropdown.js | 4 +- src/modules/gridLayout.js | 21 +- src/tablefilter.js | 7 +- static/partials/countries-by-continent.html | 14 +- static/partials/dummy-table.html | 736 +++-- static/partials/pre-inline-script.html | 13 +- static/partials/style.html | 5 +- static/templates/data-types.html | 208 +- static/templates/linked-filters-disabled.html | 56 + test/test-linked-filters.js | 25 +- test/test-paging.js | 2 + 20 files changed, 4064 insertions(+), 601 deletions(-) create mode 100644 examples/linked-filters-disabled.html create mode 100644 static/templates/linked-filters-disabled.html diff --git a/dist/tablefilter/tablefilter.js b/dist/tablefilter/tablefilter.js index 4c63e75d..b085d02e 100644 --- a/dist/tablefilter/tablefilter.js +++ b/dist/tablefilter/tablefilter.js @@ -2674,16 +2674,15 @@ return /******/ (function(modules) { // webpackBootstrap * 'checklist' type) */ value: function linkFilters() { + if (_Types2['default'].isUndef(this.activeFilterId)) { + return; + } var slcA1 = this.getFiltersByType(this.fltTypeSlc, true), slcA2 = this.getFiltersByType(this.fltTypeMulti, true), slcA3 = this.getFiltersByType(this.fltTypeCheckList, true), slcIndex = slcA1.concat(slcA2); slcIndex = slcIndex.concat(slcA3); - if (!this.activeFilterId) { - return; - } - var activeFlt = this.activeFilterId.split('_')[0]; activeFlt = activeFlt.split(this.prfxFlt)[1]; var slcSelectedValue = undefined; @@ -4100,7 +4099,12 @@ return /******/ (function(modules) { // webpackBootstrap this.tblCont = _Dom2['default'].create('div', ['id', this.prfxTblCont + tf.id]); this.tblCont.className = this.gridContCssClass; if (this.gridWidth) { - this.tblCont.style.width = this.gridWidth; + if (this.gridWidth.indexOf('%') != -1) { + console.log(this.gridWidth); + this.tblCont.style.width = '100%'; + } else { + this.tblCont.style.width = this.gridWidth; + } } if (this.gridHeight) { this.tblCont.style.height = this.gridHeight; @@ -4121,7 +4125,12 @@ return /******/ (function(modules) { // webpackBootstrap this.headTblCont = _Dom2['default'].create('div', ['id', this.prfxHeadTblCont + tf.id]); this.headTblCont.className = this.gridHeadContCssClass; if (this.gridWidth) { - this.headTblCont.style.width = this.gridWidth; + if (this.gridWidth.indexOf('%') != -1) { + console.log(this.gridWidth); + this.headTblCont.style.width = '100%'; + } else { + this.headTblCont.style.width = this.gridWidth; + } } //Headers table @@ -4185,7 +4194,7 @@ return /******/ (function(modules) { // webpackBootstrap tf.setColWidths(0, this.headTbl); //Headers container width - this.headTblCont.style.width = this.tblCont.clientWidth + 'px'; + // this.headTblCont.style.width = this.tblCont.clientWidth+'px'; tbl.style.width = ''; // @@ -4290,7 +4299,7 @@ return /******/ (function(modules) { // webpackBootstrap var thCW = o.crWColsRow.cells[colIndex].clientWidth; var tdCW = o.crWRowDataTbl.cells[colIndex].clientWidth; - if (thCW != tdCW /*&& !Helpers.isIE()*/) { + if (thCW != tdCW) { o.headTbl.style.width = tbl.clientWidth + 'px'; } @@ -4302,9 +4311,6 @@ return /******/ (function(modules) { // webpackBootstrap if (tbl.clientWidth !== this.headTbl.clientWidth) { tbl.style.width = this.headTbl.clientWidth + 'px'; } - - // Re-adjust reference row - //tf.refRow = Helpers.isIE() ? (tf.refRow+1) : 0; } }, { key: 'destroy', @@ -5052,7 +5058,7 @@ return /******/ (function(modules) { // webpackBootstrap if (isLinked && tf.disableExcludedOptions) { var filteredCol = filteredDataCol[j]; if (!filteredCol) { - filteredCol = this.GetFilteredDataCol(j); + filteredCol = tf.getFilteredDataCol(j); } if (!_Arr2['default'].has(filteredCol, cell_string, matchCase) && !_Arr2['default'].has(excludedOpts, cell_string, matchCase) && !this.isFirstLoad) { excludedOpts.push(cell_data); @@ -5154,7 +5160,7 @@ return /******/ (function(modules) { // webpackBootstrap var val = this.opts[y]; //option value var lbl = this.isCustom ? this.optsTxt[y] : val; //option text var isDisabled = false; - if (isLinked && this.disableExcludedOptions && _Arr2['default'].has(excludedOpts, _Str2['default'].matchCase(val, tf.matchCase), tf.matchCase)) { + if (isLinked && tf.disableExcludedOptions && _Arr2['default'].has(excludedOpts, _Str2['default'].matchCase(val, tf.matchCase), tf.matchCase)) { isDisabled = true; } @@ -5294,6 +5300,7 @@ return /******/ (function(modules) { // webpackBootstrap this.isCustom = null; this.opts = null; this.optsTxt = null; + this.excludedOpts = null; this.tf = tf; } @@ -5369,10 +5376,9 @@ return /******/ (function(modules) { // webpackBootstrap activeFlt = activeFlt.split(tf.prfxFlt)[1]; } - var excludedOpts, - filteredDataCol = []; + var filteredDataCol = []; if (tf.linkedFilters && tf.disableExcludedOptions) { - excludedOpts = []; + this.excludedOpts = []; } for (var k = tf.refRow; k < tf.nbRows; k++) { @@ -5403,10 +5409,10 @@ return /******/ (function(modules) { // webpackBootstrap var filteredCol = filteredDataCol[j]; if (tf.linkedFilters && tf.disableExcludedOptions) { if (!filteredCol) { - filteredDataCol[j] = tf.GetFilteredDataCol(j); + filteredCol = tf.getFilteredDataCol(j); } - if (!_Arr2['default'].has(filteredCol, cell_string, tf.matchCase) && !_Arr2['default'].has(excludedOpts, cell_string, tf.matchCase) && !tf.isFirstLoad) { - excludedOpts.push(cell_data); + if (!_Arr2['default'].has(filteredCol, cell_string, tf.matchCase) && !_Arr2['default'].has(this.excludedOpts, cell_string, tf.matchCase) && !tf.isFirstLoad) { + this.excludedOpts.push(cell_data); } } } @@ -5423,13 +5429,13 @@ return /******/ (function(modules) { // webpackBootstrap if (tf.sortSlc && !this.isCustom) { if (!tf.matchCase) { this.opts.sort(_Sort2['default'].ignoreCase); - if (excludedOpts) { - excludedOpts.sort(_Sort2['default'].ignoreCase); + if (this.excludedOpts) { + this.excludedOpts.sort(_Sort2['default'].ignoreCase); } } else { this.opts.sort(); - if (excludedOpts) { - excludedOpts.sort(); + if (this.excludedOpts) { + this.excludedOpts.sort(); } } } @@ -5437,16 +5443,16 @@ return /******/ (function(modules) { // webpackBootstrap if (tf.sortNumAsc && _Arr2['default'].has(tf.sortNumAsc, colIndex)) { try { this.opts.sort(numSortAsc); - if (excludedOpts) { - excludedOpts.sort(numSortAsc); + if (this.excludedOpts) { + this.excludedOpts.sort(numSortAsc); } if (this.isCustom) { this.optsTxt.sort(numSortAsc); } } catch (e) { this.opts.sort(); - if (excludedOpts) { - excludedOpts.sort(); + if (this.excludedOpts) { + this.excludedOpts.sort(); } if (this.isCustom) { this.optsTxt.sort(); @@ -5457,16 +5463,16 @@ return /******/ (function(modules) { // webpackBootstrap if (tf.sortNumDesc && _Arr2['default'].has(tf.sortNumDesc, colIndex)) { try { this.opts.sort(numSortDesc); - if (excludedOpts) { - excludedOpts.sort(numSortDesc); + if (this.excludedOpts) { + this.excludedOpts.sort(numSortDesc); } if (this.isCustom) { this.optsTxt.sort(numSortDesc); } } catch (e) { this.opts.sort(); - if (excludedOpts) { - excludedOpts.sort(); + if (this.excludedOpts) { + this.excludedOpts.sort(); } if (this.isCustom) { this.optsTxt.sort(); @@ -5511,7 +5517,7 @@ return /******/ (function(modules) { // webpackBootstrap var lbl = this.isCustom ? this.optsTxt[y] : val; //item text var li = _Dom2['default'].createCheckItem(tf.fltIds[colIndex] + '_' + (y + chkCt), val, lbl); li.className = this.checkListItemCssClass; - if (tf.linkedFilters && tf.disableExcludedOptions && _Arr2['default'].has(excludedOpts, _Str2['default'].matchCase(val, tf.matchCase), tf.matchCase)) { + if (tf.linkedFilters && tf.disableExcludedOptions && _Arr2['default'].has(this.excludedOpts, _Str2['default'].matchCase(val, tf.matchCase), tf.matchCase)) { _Dom2['default'].addClass(li, this.checkListItemDisabledCssClass); li.check.disabled = true; li.disabled = true; diff --git a/examples/auto-filter.html b/examples/auto-filter.html index 16e27a53..1a9ecf19 100644 --- a/examples/auto-filter.html +++ b/examples/auto-filter.html @@ -6,11 +6,12 @@ + + +

TableFilter v0.0.0

+

Linked filters with disabled options demo

+

+ This demo features the refresh filters behaviour. In this mode, the + drop-down filters are linked and if the + disable_excluded_options is enabled, the invalid options in the + linked filters are simply greyed-out. +

+

+ This feature was suggested by + zehnplus. +

+ +

+
+
+
+    
+        
+            
+            
+            
+            
+            
+            
+        
+    
+    
+        
+            
+            
+            
+            
+            
+            
+        
+        
+            
+            
+            
+            
+            
+            
+        
+        
+            
+            
+            
+            
+            
+            
+        
+        
+            
+            
+            
+            
+            
+                
+                
+                
+                    
+                    
+                    
+                    
+                    
+                    
+                
+                
+                    
+                    
+                    
+                    
+                    
+                    
+                
+                
+                    
+                    
+                    
+                    
+                    
+                    
+                
+                
+                    
+                    
+                    
+                    
+                    
+                    
+                
+                
+                    
+                    
+                    
+                    
+                    
+                    
+                    
+                    
+                        
+                        
+                        
+                        
+                        
+                        
+                    
+                    
+                        
+                        
+                        
+                        
+                        
+                        
+                    
+                    
+                        
+                        
+                        
+                        
+                        
+                        
+                    
+                    
+                        
+                        
+                        
+                        
+                        
+                        
+                    
+                    
+                        
+                        
+                        
+                        
+                        
+                        
+                    
+                    
+                        
+                        
+                        
+                        
+                        
+                        
+                    
+                    
+                        
+                        
+                        
+                        
+                        
+                        
+                    
+                    
+                        
+                        
+                        
+                        
+                        
+                        
+                    
+                    
+                        
+                        
+                        
+                        
+                        
+                        
+                    
+                    
+                        
+                        
+                        
+                        
+                        
+                        
+                    
+                    
+                        
+                        
+                        
+                        
+                        
+                        
+                    
+                    
+                        
+                        
+                        
+                        
+                        
+                        
+                    
+                    
+                        
+                        
+                        
+                        
+                        
+                        
+                    
+                    
+                        
+                        
+                        
+                        
+                        
+                        
+                    
+                    
+                        
+                        
+                        
+                        
+                        
+                        
+                    
+                    
+                        
+                        
+                        
+                        
+                        
+                        
+                    
+                    
+                        
+                        
+                        
+                        
+                        
+                        
+                    
+                    
+                        
+                        
+                        
+                        
+                        
+                        
+                    
+                    
+                        
+                        
+                        
+                        
+                        
+                        
+                    
+                    
+                        
+                        
+                        
+                        
+                        
+                        
+                    
+                    
+                        
+                        
+                        
+                        
+                        
+                        
+                    
+                    
+                        
+                        
+                        
+                        
+                        
+                        
+                    
+                    
+                        
+                        
+                        
+                        
+                        
+                        
+                    
+                    
+                        
+                        
+                        
+                        
+                        
+                        
+                    
+                    
+                        
+                        
+                        
+                        
+                        
+                        
+                    
+                    
+                        
+                        
+                        
+                        
+                        
+                        
+                    
+                    
+                        
+                        
+                        
+                        
+                        
+                        
+                    
+                    
+                        
+                        
+                        
+                        
+                        
+                            
+                            
+                            
+                                
+                                
+                                
+                                
+                                
+                                
+                            
+                            
+                                
+                                
+                                
+                                
+                                
+                                
+                            
+                            
+                                
+                                
+                                
+                                
+                                
+                                
+                            
+                            
+                                
+                                
+                                
+                                
+                                
+                                
+                            
+                            
+                                
+                                
+                                
+                                
+                                
+                                
+                            
+                            
+                                
+                                
+                                
+                                
+                                
+                                
+                            
+                            
+                                
+                                
+                                
+                                
+                                
+                                
+                            
+                            
+                                
+                                
+                                
+                                
+                                
+                                
+                            
+                            
+                                
+                                
+                                
+                                
+                                
+                                
+                            
+                            
+                                
+                                
+                                
+                                
+                                
+                                
+                            
+                            
+                                
+                                
+                                
+                                
+                                
+                                
+                            
+                            
+                                
+                                
+                                
+                                
+                                
+                                
+                            
+                            
+                                
+                                
+                                
+                                
+                                
+                                
+                            
+                            
+                                
+                                
+                                
+                                
+                                
+                                
+                            
+                            
+                                
+                                
+                                
+                                
+                                
+                                
+                            
+                            
+                                
+                                
+                                
+                                
+                                
+                                
+                            
+                            
+                                
+                                
+                                
+                                
+                                
+                                
+                            
+                            
+                                
+                                
+                                
+                                
+                                
+                                
+                            
+                            
+                                
+                                
+                                
+                                
+                                
+                                
+                            
+                            
+                                
+                                
+                                
+                                
+                                
+                                
+                            
+                            
+                                
+                                
+                                
+                                
+                                
+                                
+                            
+                            
+                                
+                                
+                                
+                                
+                                
+                                
+                            
+                            
+                                
+                                
+                                
+                                
+                                
+                                
+                            
+                            
+                                
+                                
+                                
+                                
+                                
+                                
+                            
+                            
+                                
+                                
+                                
+                                
+                                
+                                
+                            
+                            
+                                
+                                
+                                
+                                
+                                
+                                
+                            
+                            
+                                
+                                
+                                
+                                
+                                
+                                
+                            
+                            
+                                
+                                
+                                
+                                
+                                
+                                
+                            
+                            
+                                
+                                
+                                
+                                
+                                
+                                
+                            
+                            
+                                
+                                
+                                
+                                
+                                
+                                
+                            
+                            
+                                
+                                
+                                
+                                
+                                
+                                
+                            
+                            
+                                
+                                
+                                
+                                
+                                
+                                
+                            
+                            
+                                
+                                
+                                
+                                
+                                
+                                
+                            
+                            
+                                
+                                
+                                
+                                
+                                
+                                
+                            
+                            
+                                
+                                
+                                
+                                
+                                
+                                
+                            
+                            
+                                
+                                
+                                
+                                
+                                
+                                
+                            
+                            
+                                
+                                
+                                
+                                
+                                
+                                
+                            
+                            
+                                
+                                
+                                
+                                
+                                
+                                
+                            
+                            
+                                
+                                
+                                
+                                
+                                
+                                
+                            
+                            
+                                
+                                
+                                
+                                
+                                
+                                
+                            
+                            
+                                
+                                
+                                
+                                
+                                
+                                
+                            
+                            
+                                
+                                
+                                
+                                
+                                
+                                
+                            
+                            
+                                
+                                
+                                
+                                
+                                
+                                
+                            
+                            
+                                
+                                
+                                
+                                
+                                
+                                
+                            
+                            
+                                
+                                
+                                
+                                
+                                
+                                
+                            
+                            
+                                
+                                
+                                
+                                
+                                
+                                
+                            
+                            
+                                
+                                
+                                
+                                
+                                
+                                
+                            
+                            
+                                
+                                
+                                
+                                
+                                
+                                
+                            
+                            
+                                
+                                
+                                
+                                
+                                
+                                
+                            
+                            
+                                
+                                
+                                
+                                
+                                
+                                
+                            
+                            
+                                
+                                
+                                
+                                
+                                
+                                
+                            
+                            
+                                
+                                
+                                
+                                
+                                
+                                    
+                                
+                                
+                                    
+                                    
+                                    
+                                    
+                                    
+                                    
+                                
+                                
+                                    
+                                    
+                                    
+                                    
+                                    
+                                    
+                                
+                                
+                                    
+                                    
+                                    
+                                    
+                                    
+                                    
+                                
+                                
+                                    
+                                    
+                                    
+                                    
+                                    
+                                    
+                                
+                                
+                                    
+                                    
+                                    
+                                    
+                                    
+                                    
+                                
+                                
+                                    
+                                    
+                                    
+                                    
+                                    
+                                    
+                                
+                                
+                                    
+                                    
+                                    
+                                    
+                                    
+                                    
+                                
+                                
+                                    
+                                    
+                                    
+                                    
+                                    
+                                    
+                                
+                                
+                                    
+                                    
+                                    
+                                    
+                                    
+                                    
+                                
+                                
+                                    
+                                    
+                                    
+                                    
+                                    
+                                    
+                                
+                                
+                                    
+                                    
+                                    
+                                    
+                                    
+                                    
+                                
+                                
+                                    
+                                    
+                                    
+                                    
+                                    
+                                    
+                                
+                                
+                                    
+                                    
+                                    
+                                    
+                                    
+                                    
+                                
+                                
+                                    
+                                    
+                                    
+                                    
+                                    
+                                    
+                                
+                                
+                                    
+                                    
+                                    
+                                    
+                                    
+                                    
+                                
+                                
+                                    
+                                    
+                                    
+                                    
+                                    
+                                    
+                                
+                                
+                                    
+                                    
+                                    
+                                    
+                                    
+                                    
+                                
+                                
+                                    
+                                    
+                                    
+                                    
+                                    
+                                    
+                                
+                                
+                                    
+                                    
+                                    
+                                    
+                                    
+                                    
+                                
+                                
+                                    
+                                    
+                                    
+                                    
+                                    
+                                    
+                                
+                                
+                                    
+                                    
+                                    
+                                    
+                                    
+                                    
+                                
+                                
+                                    
+                                    
+                                    
+                                    
+                                    
+                                    
+                                
+                                
+                                    
+                                    
+                                    
+                                    
+                                    
+                                    
+                                
+                                
+                                    
+                                    
+                                    
+                                    
+                                    
+                                    
+                                
+                                
+                                    
+                                    
+                                    
+                                    
+                                    
+                                    
+                                
+                                
+                                    
+                                    
+                                    
+                                    
+                                    
+                                    
+                                
+                                
+                                    
+                                    
+                                    
+                                    
+                                    
+                                    
+                                
+                                
+                                    
+                                    
+                                    
+                                    
+                                    
+                                    
+                                
+                                
+                                    
+                                    
+                                    
+                                    
+                                    
+                                    
+                                
+                                
+                                    
+                                    
+                                    
+                                    
+                                    
+                                    
+                                
+                                
+                                    
+                                    
+                                    
+                                    
+                                    
+                                    
+                                
+                                
+                                    
+                                    
+                                    
+                                    
+                                    
+                                    
+                                
+                                
+                                    
+                                    
+                                    
+                                    
+                                    
+                                    
+                                
+                                
+                                    
+                                    
+                                    
+                                    
+                                    
+                                    
+                                
+                                
+                                    
+                                    
+                                    
+                                    
+                                    
+                                    
+                                
+                                
+                                    
+                                    
+                                    
+                                    
+                                    
+                                    
+                                
+                                
+                                    
+                                    
+                                    
+                                    
+                                    
+                                    
+                                
+                                
+                                    
+                                    
+                                    
+                                    
+                                    
+                                    
+                                
+                                
+                                    
+                                    
+                                    
+                                    
+                                    
+                                    
+                                
+                                
+                                    
+                                    
+                                    
+                                    
+                                    
+                                    
+                                
+                                
+                                    
+                                    
+                                    
+                                    
+                                    
+                                    
+                                
+                                
+                                    
+                                    
+                                    
+                                    
+                                    
+                                    
+                                
+                                
+                                    
+                                    
+                                    
+                                    
+                                    
+                                    
+                                
+                                
+                                    
+                                    
+                                    
+                                    
+                                    
+                                    
+                                
+                                
+                                    
+                                    
+                                    
+                                    
+                                    
+                                    
+                                
+                                
+                                    
+                                    
+                                    
+                                    
+                                    
+                                    
+                                
+                                
+                                    
+                                    
+                                    
+                                    
+                                    
+                                    
+                                
+                                
+                                    
+                                    
+                                    
+                                    
+                                    
+                                    
+                                
+                                
+                                    
+                                    
+                                    
+                                    
+                                    
+                                    
+                                
+                                
+                                    
+                                    
+                                    
+                                    
+                                    
+                                    
+                                
+                                
+                                    
+                                    
+                                    
+                                    
+                                    
+                                    
+                                
+                                
+                                    
+                                    
+                                    
+                                    
+                                    
+                                    
+                                
+                                
+                                    
+                                    
+                                    
+                                    
+                                    
+                                    
+                                
+                                
+                                    
+                                    
+                                    
+                                    
+                                    
+                                    
+                                
+                                
+                                    
+                                    
+                                    
+                                    
+                                    
+                                    
+                                
+                                
+                                    
+                                    
+                                    
+                                    
+                                    
+                                    
+                                
+                                
+                                    
+                                    
+                                    
+                                    
+                                    
+                                    
+                                
+                                
+                                    
+                                    
+                                    
+                                    
+                                    
+                                    
+                                
+                                
+                                    
+                                    
+                                    
+                                    
+                                    
+                                    
+                                
+                                
+                                    
+                                    
+                                    
+                                    
+                                    
+                                    
+                                
+                                
+                                    
+                                    
+                                    
+                                    
+                                    
+                                    
+                                
+                                
+                                    
+                                    
+                                    
+                                    
+                                    
+                                    
+                                
+                                
+                                    
+                                    
+                                    
+                                    
+                                    
+                                    
+                                
+                                
+                                    
+                                    
+                                    
+                                    
+                                    
+                                    
+                                
+                                
+                                    
+                                    
+                                    
+                                    
+                                    
+                                    
+                                
+                                
+                                    
+                                    
+                                    
+                                    
+                                    
+                                    
+                                
+                                
+                                    
+                                    
+                                    
+                                    
+                                    
+                                    
+                                
+                                
+                                    
+                                    
+                                    
+                                    
+                                    
+                                    
+                                
+                                
+                                    
+                                    
+                                    
+                                    
+                                    
+                                    
+                                
+                                
+                                    
+                                    
+                                    
+                                    
+                                    
+                                    
+                                
+                                
+                                    
+                                    
+                                    
+                                    
+                                    
+                                    
+                                
+                                
+                                    
+                                    
+                                    
+                                    
+                                    
+                                    
+                                
+                                
+                                    
+                                    
+                                    
+                                    
+                                    
+                                    
+                                
+                                
+                                    
+                                    
+                                    
+                                    
+                                    
+                                    
+                                
+                                
+                                    
+                                    
+                                    
+                                    
+                                    
+                                    
+                                
+                                
+                                    
+                                    
+                                    
+                                    
+                                    
+                                    
+                                
+                                
+                                    
+                                    
+                                    
+                                    
+                                    
+                                    
+                                
+                                
+                                    
+                                    
+                                    
+                                    
+                                    
+                                    
+                                
+                                
+                                    
+                                    
+                                    
+                                    
+                                    
+                                    
+                                
+                                
+                                    
+                                    
+                                    
+                                    
+                                    
+                                    
+                                
+                                
+                                    
+                                    
+                                    
+                                    
+                                    
+                                    
+                                
+                                
+                                    
+                                    
+                                    
+                                    
+                                    
+                                    
+                                
+                                
+                                    
+                                    
+                                    
+                                    
+                                    
+                                    
+                                
+                                
+                                    
+                                    
+                                    
+                                    
+                                    
+                                    
+                                
+                                
+                                    
+                                    
+                                    
+                                    
+                                    
+                                    
+                                
+                                
+                                    
+                                    
+                                    
+                                    
+                                    
+                                    
+                                
+                                
+                                    
+                                    
+                                    
+                                    
+                                    
+                                    
+                                
+                                
+                                    
+                                    
+                                    
+                                    
+                                    
+                                    
+                                
+                                
+                                    
+                                    
+                                    
+                                    
+                                    
+                                    
+                                
+                                
+                                    
+                                    
+                                    
+                                    
+                                    
+                                    
+                                
+                                
+                                    
+                                    
+                                    
+                                    
+                                    
+                                    
+                                
+                                
+                                    
+                                    
+                                    
+                                    
+                                    
+                                    
+                                
+                                
+                                    
+                                    
+                                    
+                                    
+                                    
+                                    
+                                
+                                
+                                    
+                                    
+                                    
+                                    
+                                    
+                                    
+                                
+                                
+                                    
+                                    
+                                    
+                                    
+                                    
+                                    
+                                
+                                
+                                    
+                                    
+                                    
+                                    
+                                    
+                                    
+                                
+                                
+                                    
+                                    
+                                    
+                                    
+                                    
+                                    
+                                
+                                
+                                    
+                                    
+                                    
+                                    
+                                    
+                                    
+                                
+                                
+                                    
+                                    
+                                    
+                                    
+                                    
+                                    
+                                
+                                
+                                    
+                                    
+                                    
+                                    
+                                    
+                                    
+                                
+                                
+                                    
+                                    
+                                    
+                                    
+                                    
+                                    
+                                
+                                
+                                    
+                                    
+                                    
+                                    
+                                    
+                                    
+                                
+                                
+                                    
+                                    
+                                    
+                                    
+                                    
+                                    
+                                
+                                
+                                    
+                                    
+                                    
+                                    
+                                    
+                                    
+                                
+                                
+                                    
+                                    
+                                    
+                                    
+                                    
+                                    
+                                
+                                
+                                    
+                                    
+                                    
+                                    
+                                    
+                                    
+                                
+                                
+                                    
+                                    
+                                    
+                                    
+                                    
+                                    
+                                
+                                
+                                    
+                                    
+                                    
+                                    
+                                    
+                                    
+                                
+                                
+                                    
+                                    
+                                    
+                                    
+                                    
+                                    
+                                
+                                
+                                    
+                                    
+                                    
+                                    
+                                    
+                                    
+                                
+                                
+                                    
+                                    
+                                    
+                                    
+                                    
+                                    
+                                
+                                
+                                    
+                                    
+                                    
+                                    
+                                    
+                                    
+                                
+                                
+                                    
+                                    
+                                    
+                                    
+                                    
+                                    
+                                
+                                
+                                    
+                                    
+                                    
+                                    
+                                    
+                                    
+                                
+                                
+                                    
+                                    
+                                    
+                                    
+                                    
+                                    
+                                
+                                
+                                    
+                                    
+                                    
+                                    
+                                    
+                                    
+                                
+                                
+                                    
+                                    
+                                    
+                                    
+                                    
+                                    
+                                
+                                
+                                    
+                                    
+                                    
+                                    
+                                    
+                                    
+                                
+                                
+                                    
+                                    
+                                    
+                                    
+                                    
+                                    
+                                
+                                
+                                    
+                                    
+                                    
+                                    
+                                    
+                                    
+                                
+                                
+                                    
+                                    
+                                    
+                                    
+                                    
+                                    
+                                
+                                
+                                    
+                                    
+                                    
+                                    
+                                    
+                                    
+                                
+                                
+                                    
+                                    
+                                    
+                                    
+                                    
+                                    
+                                
+                                
+                                    
+                                    
+                                    
+                                    
+                                    
+                                    
+                                
+                                
+                                    
+                                    
+                                    
+                                    
+                                    
+                                    
+                                
+                                
+                                    
+                                    
+                                    
+                                    
+                                    
+                                    
+                                
+                                
+                                    
+                                    
+                                    
+                                    
+                                    
+                                    
+                                
+                                
+                                    
+                                    
+                                    
+                                    
+                                    
+                                    
+                                
+                                
+                                    
+                                    
+                                    
+                                    
+                                    
+                                    
+                                
+                                
+                                    
+                                    
+                                    
+                                    
+                                    
+                                    
+                                
+                                
+                                    
+                                    
+                                    
+                                    
+                                    
+                                    
+                                
+                                
+                                    
+                                    
+                                    
+                                    
+                                    
+                                    
+                                
+                                
+                                    
+                                    
+                                    
+                                    
+                                    
+                                    
+                                
+                                
+                                    
+                                    
+                                    
+                                    
+                                    
+                                    
+                                
+                                
+                                    
+                                    
+                                    
+                                    
+                                    
+                                    
+                                
+                                
+                                    
+                                    
+                                    
+                                    
+                                    
+                                    
+                                
+                                
+                                    
+                                    
+                                    
+                                    
+                                    
+                                    
+                                
+                                
+                                    
+                                    
+                                    
+                                    
+                                    
+                                    
+                                
+                                
+                                    
+                                    
+                                    
+                                    
+                                    
+                                    
+                                
+                                
+                                    
+                                    
+                                    
+                                    
+                                    
+                                    
+                                
+                                
+                                    
+                                    
+                                    
+                                    
+                                    
+                                    
+                                
+                                
+                                    
+                                    
+                                    
+                                    
+                                    
+                                    
+                                
+                                
+                                    
+                                    
+                                    
+                                    
+                                    
+                                    
+                                
+                                
+                                    
+                                    
+                                    
+                                    
+                                    
+                                    
+                                
+                                
+                                    
+                                    
+                                    
+                                    
+                                    
+                                    
+                                
+                                
+                                    
+                                    
+                                    
+                                    
+                                    
+                                    
+                                
+                            
+                        
RankContinent/RegionCountry / TerritoryArea (km²)% of TotalNotes
Solar System Earth148,940,000100%Total land coverage (29.2% of Earth's surface)
1Asia /Europe + Russia + 17,098,24211.5%Largest country in the world. Encyclopaedia Britannica (EB): 17,075,400 + km²
2America, North + Canada + 9,984,6706.7%Largest country in the Western Hemisphere. Longest coastline. EB: + 9,984,670 km²
3 America, North + United + States + 9,629,0916.5% +
+
Includes only the + 50 + states and the District of Columbia. The total area is listed as + 9,826,630 km² by the CIA World Factbook. +
+ EB: 9,522,055 km² +
4Asia, Eastern + PR + China + 9,598,0946.4%Second largest Asian country (after Asian part of Russia). Total of + separate UN figures for Mainland China (9,596,961) inclusive Hong Kong + SAR (1,104 km²) and Macau (29 km²). (Excludes all disputed + territories.) EB: 9,572,900 km²
5America, South + Brazil + 8,514,8775.7%Largest country in South America, and in the Southern Hemisphere. + EB: 8,514,877 km²
6Oceania, Australia + Australia + 7,692,0245.2%Australia is the only country that is coterminous with a continent. + Largest country without a land-border to neighbours. Largest country + in Oceania. EB: 7,692,208 km²
7Asia, South-Central + India + 3,287,2632.3%Figure includes 120,849 km² of disputed territories with Pakistan + and China. Third-largest country in Asia (after Russia and China). EB: + 3,166,414 km²
8America, South + Argentina + 2,780,4002%Second largest country in South America. +
+ EB: 2,780,403 km² +
9Asia, South-Central + Kazakhstan + 2,724,9001.8%Largest landlocked country in the world. EB: 2,724,900 km²
10Africa, Northern + Sudan + 2,505,8131.7%Largest country in Africa. EB: 2,505,810 km²
11Africa, Northern + Algeria + 2,381,7411.6%Second-largest country in Africa
12Africa, Central + Democratic + Republic of the Congo (Kinshasa) + 2,344,8581.6%Third-largest country in Africa
13Europe, Northern + + Greenland + + 2,166,0861.5%Self-governing territory of Denmark. Largest island in the world.
14Middle East + Saudi + Arabia + 2,000,0001.4%Largest country in the Middle East
15America, Northern + Mexico + 1,964,3751.3%Third-largest country in North America.
16Asia, South-East + Indonesia + 1,904,5691.3%Largest and most populous country situated only on islands. Also the + largest country in South East Asia.
17Africa, Northern + Libya + 1,759,5401.2%
18Asia, South-Central + Iran + 1,648,1951.1%
19Asia, Eastern + Mongolia + 1,564,1001.1% 
20America, South + Peru + 1,285,2160.86%Third-largest country in South America
21Africa, Central + Chad + 1,284,0000.86%
22Africa, Western + Niger + 1,267,0000.85%
23Africa, Central + Angola + 1,246,7000.85%
24Africa, Western + Mali + 1,240,1920.83%
25Africa, Southern + South + Africa + 1,221,0370.82%Includes Prince Edward Islands (Marion Island and Prince Edward Island).
26America, South + Colombia + 1,138,9140.76%Colombian census figure is 1,141,748 which includes three special + districts and San Andrés and Providencia islands (52 km²) (disputed + territories with Nicaragua).
27Africa, Eastern + Ethiopia + 1,104,3000.74%
28America, South + Bolivia + 1,098,5810.74% 
29Africa, Western + Mauritania + 1,025,5200.69%
30Africa, Northern + Egypt + 1,002,0000.67%Excluding the disputed region Hala'ib Triangle (20,580 km²).
31Africa, Eastern + Tanzania + 945,0870.63%Includes the islands of Mafia, Pemba, and Zanzibar.
32Africa, Western + Nigeria + 923,7680.62%
33America, South + Venezuela + 912,0500.61%
34Africa, Southern + Namibia + 824,2920.55%
35Africa, Eastern + Mozambique + 801,5900.54%
36Asia, South-Central + Pakistan + 796,0950.53% +
+
Excludes all disputed territories. +
+
37Western Asia, Southern Europe + Turkey + 783,5620.53%Third-largest among countries with part of territory in Europe (after + Russia and Kazakhstan)
38America, South + Chile + 756,1020.51%Includes Easter Island (Isla de Pascua; Rapa Nui) and Isla Sala y + Gómez, excludes claims on Antarctica (1,250,000 km²).
39Africa, Eastern + Zambia + 752,6180.51%
40Asia, South-East + Myanmar + 676,5780.45%
41Asia, South-Central + Afghanistan + 652,0900.44%
42Africa, Eastern + Somalia + 637,6570.43%
43Africa, Central + Central + African Republic + 622,9840.42%
44Europe, Eastern + Ukraine + 603,5000.41%Largest all-European country, fourth largest among countries with + part of territory in Europe (after Russia, Kazakhstan and Turkey).
45Africa, Eastern + Madagascar + 587,0410.39%
46Africa, Southern + Botswana + 582,0000.39%
47Africa, Eastern + Kenya + 580,3670.39%
48Europe, Western + France + 551,5000.37%Metropolitan France (European France including Corsica) only. The + French Republic including French overseas territories covers 674,843 km². +
49Europe, Northern + Sweden + 531,7960.30%Includes Gotland and Öland.
50Middle East + Yemen + 527,9680.35%Includes the islands of Perim and Socotra.
51Asia, South-East + Thailand + 513,1200.34%
52Europe, Southern + Spain + 505,9920.34%Sixth largest in Europe, second largest in western Europe. Includes + mainland Spain, the Balearic Islands and Canary Islands, as well as + the Spanish possessions (Plazas de Soberanía) off the coast of Morocco + (Ceuta, Melilla, Islas Chafarinas, Peñón de Alhucemas, and Peñón de + Vélez de la Gomera), and Isla de Alborán almost midway between Morocco + and Spain, all the latter being claimed by Morocco.
53Asia, South-Central + Turkmenistan + 488,1000.33%
54Africa, Central + Cameroon + 475,4420.32%
55Oceania, Melanesia + Papua + New Guinea + 462,8400.31%Second largest country in Oceania.
56Asia, South-Central + Uzbekistan + 447,4000.30%The larger of only two doubly landlocked countries in the world.
57Africa, Northern + Morocco + 446,5500.30%Excluding Western Sahara.
58Middle East + Iraq + 438,3170.29%
59America, South + Paraguay + 406,7520.27%
60Africa, Eastern + Zimbabwe + 390,7570.26%
61Asia, Eastern + Japan + 377,9150.25%Includes Ryukyu Islands (Nansei Islands), Daito Islands, Ogasawara + Islands (Bonin Islands), Minami-Torishima (Marcus Island), Okino-Torishima + and Volcano Islands (Kazan Islands); excludes the southern Kuril Islands.
62Europe, Western + Germany + 357,0220.24%EB: 357,046
63Africa, Central + Republic + of the Congo (Brazzaville) + 342,0000.23%
64Europe, Northern + Finland + 338,1450.23%Includes Åland Islands (1,552 km²).
65Asia, South-East + Vietnam + 331,6890.22%
66Asia, South-East + Malaysia + 329,8470.22%
67Europe, Northern + Norway + 323,8020.22%Mainland Norway only; not included the overseas areas of Svalbard + and Jan Mayen (62,422 km²) and the dependency of Bouvet Island + (49 km²) and the Antarctic dependency claims of Queen Maud Land + (2,500,000 km²) and Peter I Island (243 km²).
68Africa, Western + Côte + d'Ivoire + 322,4630.22%
69Europe, Eastern + Poland + 312,6850.21%
70Middle East + Oman + 309,5000.21%
71Europe, Southern + Italy + 301,3180.20%
72Asia, South-East + Philippines + 300,0000.20%
73America, South + Ecuador + 283,5610.20%Includes Galápagos Islands.
74Africa, Western + Burkina + Faso + 274,2220.18%
75Oceania, Australia + New + Zealand + 270,4670.18%Includes Antipodes Islands, Auckland Islands, Bounty Islands, Campbell + Island, Chatham Islands, and Kermadec Islands. Excludes Niue (260 km²), + the Cook Islands (236 km²) and Tokelau (12 km²), as well as + the Antarctic claim of Ross Dependency (450,000 km²). Third largest + country in Oceania.
76Africa, Central + Gabon + 267,6680.18%
77Africa, Northern + Western Sahara + 266,0000.18%Largely occupied by Morocco, some territory administered by the Sahrawi + Arab Democratic Republic.
78Africa, Western + Guinea + 245,8570.17%
79Europe, Northern + United + Kingdom + 242,9000.16%Not included are the three Crown dependencies (768 km²) of the + islands of Jersey, Guernsey and Isle of Man, and British Overseas Territories + (1,742,857 km²)
80Africa, Eastern + Uganda + 241,0380.16%
81Africa, Western + Ghana + 238,5330.16%
82Europe, Eastern + Romania + 238,3910.16%
83Asia, South-East + Lao + PDR + 236,8000.16%
84Europe, Northern + Guyana + 214,9690.14%
85Europe, Eastern + Belarus + 208,0000.14%Second-largest landlocked country in Europe (after Kazakhstan).
86Asia, South-Central + Kyrgyzstan + 199,9510.13%
87Africa, Western + Senegal + 196,7220.13%
88Middle East + Syria + 185,180 0.12% +
+
Includes the Golan Heights.
89Asia, South-East + Cambodia + 181,0350.12%
90America, South + Uruguay + 176,2150.12% 
91America, South + Suriname + 163,8200.11%Smallest country in South America.
92Africa, Northern + Tunisia + 163,6100.11%
93Asia, South-Central + Nepal + 147,1810.10%
94Asia, South-Central + Bangladesh + 143,9980.10%
95Asia, South-Central + Tajikistan + 143,1000.10%
96Europe, Southern + Greece + 131,9570.09%
97Asia, Eastern + North + Korea + 120,5380.08%
98America, Central + Nicaragua + 120,3400.09%Excludes San Andrés y Providencia islands (disputed territories with + Colombia). Nicaragua is the largest country in Central America.
99Africa, Eastern + Malawi + 118,4840.08%
100Africa, Eastern + Eritrea + 117,6000.08%Includes Badme region.
101Africa, Western + Benin + 112,6220.08%
102America, Central + Honduras + 112,4920.08%
103Africa, Western + Liberia + 111,3690.07%
104Europe, Eastern + Bulgaria + 110,8790.07%
105Caribbean + Cuba + 109,8860.07%Cuba is the largest and most populous country in the Caribbean
106America, Central + Guatemala + 108,8890.07%
107Europe, Northern + Iceland + 103,0000.07%
108Asia, Eastern + South + Korea + 99,6780.07%
109Europe, Eastern + Hungary + 93,0280.06%
110Europe, Southern + Portugal + 92,0900.06%Includes Azores and Madeira Islands.
111America, South + + French + Guiana + + 90,0000.06%French overseas département.
112Middle East + Jordan + 89,3420.06%
113Asia, Western + Azerbaijan + 86,6000.06%Includes the exclave of Nakhichevan Autonomous Republic and the Republic + of Nagorno-Karabakh.
114Europe, Western + Austria + 83,8710.06%
115Middle East + United + Arab Emirates + 83,6000.06%
116Europe, Eastern + Czech + Republic + 78,8670.05%
117Europe, Southern + Serbia + 77,4740.05%This figure does not include Kosovo, which recently unilaterally declared + itself independent to partial recognition; Serbia, Russia, China and + others object. Including Kosovo, which is still claimed by Serbia, the + total area is 88,361 km², + ranking + Serbia at 113. +
118America, Central + Panama + 75,5170.05%
119Africa, Western + Sierra + Leone + 71,7400.05%
120Europe, Northern + Ireland + (Republic of) + 70,2730.05%The island of Ireland has an area of 84,421 km².
121Asia, Western + Georgia + 69,7000.05%Includes Abkhazia (8,600 km²) and South Ossetia
122Asia, South-Central + Sri + Lanka + 65,6100.04%
123Europe, Northern + Lithuania + 65,3000.04%
124Europe, Northern + Latvia + 64,5890.04%
125Europe, Northern + Svalbard and Jan Mayen + 62,4220.04%
126Africa, Western + Togo + 56,7850.04%
127Europe, Southern + Croatia + 56,5940.04%
128Europe, Southern + Bosnia + and Herzegovina + 51,1970.03%
129America, Central + Costa + Rica + 51,1000.03%Includes Isla del Coco.
130Europe, Eastern + Slovakia + 49,0350.03%
131Caribbean + Dominican + Republic + 48,3100.03%
132Europe, Northern + Estonia + 45,2280.03%Includes Estonia's 1,520 islands in the Baltic Sea.
133Europe, Northern + Denmark + 43,0940.03%Includes Denmark proper only; the entire Kingdom of Denmark, including + Greenland and Faroe Islands covers 2,220,093 km² and would be 13th.
134Europe, Western + Netherlands + 41,5430.03%Includes the Netherlands proper only; the entire Kingdom of the Netherlands + covers 42,437 km².
135Europe, Western + Switzerland + 41,2850.03%source: + swissworld.org +
136Asia, South-Central + Bhutan + 38,3940.03%
137Asia, Eastern + Taiwan + (Republic of China) + 36,1880.02%Includes only the territories under the administration of the ROC, + namely Taiwan, and the islands of Penghu, Kinmen, and Matsu.
138Africa, Western + Guinea-Bissau + 36,1250.02%
139Europe, Eastern + Moldova + 33,8510.02%Includes the de facto independent autonomous territory of Transnistria + (Pridnestrovie).
140Europe, Western + Belgium + 30,5280.02%
141Africa, Southern + Lesotho + 30,3550.02%
142Asia, Western + Armenia + 29,7430.02%
143Oceania, Melanesia + Solomon + Islands + 28,8960.02%
144Europe, Southern + Albania + 28,7480.02%
145Africa, Central + Equatorial + Guinea + 28,0510.02%
146Africa, Eastern + Burundi + 27,8340.02%
147Caribbean + Haiti + 27,7500.02%
148Africa, Eastern + Rwanda + 26,3380.02%
149Europe, Southern + Macedonia + 25,7130.02%
150Africa, Eastern + Djibouti + 23,2000.02%
151America, Central + Belize + 22,9660.02%
152America, Central + El + Salvador + 21,0410.01%
153Middle East + Israel + 22,0720.01%Including data for East Jerusalem and Israeli residents in certain + other territories under occupation by Israeli military forces since + June 1967.
154Europe, Southern + Slovenia + 20,2730.01%
155Oceania, Melanesia + + New + Caledonia + + 18,5750.01%French dependency.
156Oceania, Melanesia + Fiji + 18,2740.01% 
157Middle East + Kuwait + 17,8180.01%
158Africa, Southern + Swaziland + 17,3640.01%
159Asia, South-East + East + Timor + 14,874>0.01%
160Caribbean + The + Bahamas + 13,943>0.01%
161Europe, Southern + Montenegro + 13,812>0.01%
162Oceania, Melanesia + Vanuatu + 12,189>0.01% 
163America, Southern + Falkland Islands + 12,173>0.01%British Overseas Territory. Claimed by Argentina. Excludes South Georgia + and the South Sandwich Islands.
164Middle East + Qatar + 11,586>0.01%
165Africa, Western + The + Gambia + 11,295>0.01%
166Caribbean + Jamaica + 10,991>0.01%
167Europe, Southern + Kosovo + 10,887>0.01%Kosovo unilaterally declared itself independent to partial recognition, + with objections from Serbia, Russia, China and others. Serbia still + claims the territory.
168Middle East + Lebanon + 10,400<0.01%
169Asia, Western + Cyprus + 9,251<0.01%Includes Northern Cyprus (only recognized by Turkey) and Akrotiri + and Dhekelia (British Sovereign Base Areas).
170Caribbean + + Puerto + Rico + + 8,870<0.01%Commonwealth of the United States.
171Middle East + + Palestinian + territories + + 6,020<0.01%The figure consists of the West Bank and Gaza Strip.
172Asia, South-East + Brunei + 5,765<0.01%
173Caribbean + Trinidad + and Tobago + 5,130<0.01%
174Africa, Western + Cape + Verde + 4,033<0.01%
175Oceania, Polynesia + + French + Polynesia + + 4,000<0.01%French overseas collectivity.
176Oceania, Polynesia + Samoa + 2,831<0.01%
177Europe, Western + Luxembourg + 2,586<0.01%
178Africa, Eastern + + Réunion + + 2,510<0.01%French overseas département.
179Africa, Eastern + Comoros + 2,235<0.01%Listed figure inccludes Mayotte (373 km²). Mayotte is officially + an overseas collectivity of France and is not under the sovereignty + of Comoros.
180Africa, Eastern + Mauritius + 2,040<0.01%Includes Agalega Islands, Cargados Carajos Shoals (Saint Brandon), + and Rodrigues.
181Caribbean + + Guadeloupe + + 1,705<0.01%French overseas département includes La Désirade, Marie Galante, Les + Saintes, Saint-Barthélemy and Saint Martin (French part). Note that + Saint-Barthélemy and Saint Martin became separate overseas collectvities + in 2007 and are no longer politically part of Guadeloupe.
182Europe, Northern + + Faroe + Islands + + 1,393<0.01%A self-governing territory of Denmark.
183Caribbean + + Martinique + + 1,102<0.01%French overseas département.
184Africa, Central + São + Tomé and Príncipe + 964<0.01%Second smallest country in Africa.
185Caribbean + Turks and Caicos Islands + 948<0.01%British Overseas Territory. Area includes protected waters.
186Caribbean + + Netherlands + Antilles + + 800<0.01%Self-governing part of the Netherlands; includes Bonaire, Curaçao, + Saba, Sint Eustatius, and Sint Maarten (Dutch part of the island of + Saint Martin).
187Caribbean + Dominica + 751<0.01% 
188Oceania, Polynesia + Tonga + 747<0.01%
189Middle East + Bahrain + 741<0.01%
190Oceania, Micronesia + Kiribati + 726<0.01%Includes three island groups - Gilbert Islands, Line Islands, Phoenix + Islands.
191Oceania, Micronesia + Micronesia, + Federated States of + 702<0.01%Includes Pohnpei (Ponape), Chuuk (Truk) Islands, Yap Islands, and + Kosrae (Kosaie).
192Asia, South-East + Singapore + 699<0.01%UN figure is as of 2005. Official area in 2007 is 707.1 km².
193Europe, Northern + Isle of Man + 572<0.01%Crown dependency of the UK.
194Oceania, Micronesia + + Guam + + 549<0.01%Organized unincorporated territory of the USA.
195Caribbean + Saint + Lucia + 539<0.01%
196Europe, Southern + Andorra + 468<0.01% 
197Oceania, Micronesia + + Northern + Mariana Islands + + 464<0.01%Commonwealth in political union with the USA; includes 14 islands + including Saipan, Rota, and Tinian.
198Oceania, Micronesia + Palau + 459<0.01%
199Africa, Eastern + Seychelles + 455<0.01%Smallest country in Africa.
200Caribbean + Antigua + and Barbuda + 442<0.01%Includes the island of Redonda, 1.6 km².
201Caribbean + Barbados + 430<0.01%
202Caribbean + Saint + Vincent and the Grenadines + 389<0.01%
203Caribbean + + Virgin + Islands U.S. + + 347<0.01%Unincorporated, organized territory of the USA.
204Caribbean + Grenada + 344<0.01% 
205Europe, Southern + Malta + 316<0.01%
206Asia, South-Central + Maldives + 298<0.01%Smallest country in Asia.
207Caribbean + Cayman Islands + 264<0.01%British Overseas Territory.
208Caribbean + Saint + Kitts and Nevis + 261<0.01%Smallest nation in North America and in the Western Hemisphere.
209Oceania, Polynesia + Niue + 260<0.01%Self-governing nation in free association with New Zealand.
210America, Northern + Saint Pierre and Miquelon + 242<0.01%French overseas collectivity; includes eight small islands in the + Saint Pierre and the Miquelon groups.
211Oceania, Polynesia + Cook Islands + 236<0.01%Self-governing in free association with New Zealand.
212Oceania, Polynesia + + American + Samoa + + 199<0.01%Unorganized, unincorporated territory of the USA; includes Rose Island + and Swains Island.
213Oceania, Micronesia + Marshall + Islands + 181<0.01%Includes the atolls of Bikini, Enewetak, Kwajalein, Majuro, Rongelap, + and Utirik.
214Caribbean + + Aruba + + 180<0.01%Self-governing part of the Netherlands.
215Europe, Western + Liechtenstein + 160<0.01%Smallest country in the world that borders more than one other country.
216Caribbean + + British + Virgin Islands + + 151<0.01%British Overseas Territory; comprised of 16 inhabited and more than + 20 uninhabited islands; includes the island of Anegada.
217Oceania, Polynesia + Wallis and Futuna + 142<0.01%French overseas collectivity; includes Île Uvéa (Wallis Island), Île + Futuna (Futuna Island), Île Alofi, and 20 islets.
218Africa, Western + Saint Helena + 122<0.01%British Overseas Territory; excluding dependencies.
219Europe, Northern + Jersey + 116<0.01%Crown dependency of the UK.
220Caribbean + + Montserrat + + 102<0.01%British Overseas Territory.
221South Atlantic Ocean + Tristan da Cunha + 98<0.01%Dependency of St Helena (UK). Area refers to the only inhabited island.
222Caribbean + + Anguilla + + 91<0.01%British Overseas Territory.
223South Atlantic Ocean + Ascension Island + 88<0.01%Dependency of the British Overseas Territory of Saint Helena.
224Europe, Northern + Guernsey + 78<0.01%Crown dependency of the UK; includes Alderney, Guernsey, Herm, Sark, + and some other smaller islands.
225Europe, Southern + San Marino + 61<0.01%
226Caribbean + + Bermuda + + 54<0.01%British Overseas Territory.
227Oceania, Australia + Norfolk Island + 36<0.01%Self-governing area of Australia.
228Oceania, Polynesia + Tuvalu + 26<0.01% 
229Oceania, Micronesia + Nauru + 21<0.01%Smallest country in Oceania, smallest island nation in the world, + and third smallest country in the world.
230Oceania, Australia + Tokelau + 12<0.01%Territory of New Zealand.
231Europe, Southern + Gibraltar + 6<0.01%British Overseas Territory.
232Oceania, Polynesia + + Pitcairn + Islands + + 5<0.01%British Overseas Territory and smallest dependent territory of the + world.
233Europe, Southern + Monaco + 1.95<0.01%Second smallest country of the world.
234Europe, Southern + Vatican + City + 0.44<0.01%Smallest country in the world. Home of the Pope and the governing + body of the Roman Catholic Church.
+ + + + + + + + + diff --git a/examples/linked-filters.html b/examples/linked-filters.html index 3af1f2e3..2d4869eb 100644 --- a/examples/linked-filters.html +++ b/examples/linked-filters.html @@ -6,11 +6,12 @@