Pen Settings

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

Code Indentation

     

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

            
               <link rel="stylesheet" href="https://unpkg.com/leaflet@1.6.0/dist/leaflet.css"
   integrity="sha512-xwE/Az9zrjBIphAcBb3F6JVqxf46+CDLwfLMHloNu6KEQCAWi6HcDUbeOfBIptF7tcCzusKFjFw2yuvEpDL9wQ=="
   crossorigin=""/>
 <!-- Make sure you put this AFTER Leaflet's CSS -->
 <script src="https://unpkg.com/leaflet@1.6.0/dist/leaflet.js"
   integrity="sha512-gZwIG9x3wUXg2hdXF6+rVkLF/0Vi9U8D2Ntg4Ga5I5BZpVkVxlJWbSQtXPSiUTtC0TjtGOmxa1AJPuV0CPthew=="
   crossorigin=""></script>

<style href="https://leaflet.github.io/Leaflet.markercluster/dist/MarkerCluster.css"></style>
<style href="https://leaflet.github.io/Leaflet.markercluster/dist/MarkerCluster.Default.css"></style>
<script src="https://leaflet.github.io/Leaflet.markercluster/dist/leaflet.markercluster-src.js"></script>
<div class="text">
  <h1>Arch Linux Mirror Servers</h1>
  <pre><a href="https://www.archlinux.org/mirrorlist/" target="_blank">Mirror List</a> <span class="lc"></span></pre>
</div>
<div id="mapid"></div>
<!-- <div id="map"></div> -->

            
          
!
            
              
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
}
h1 { margin: 0; }

#map, #mapid { height: 800px;   width: 100%; position: absolute; top: 0; z-index: 400;}

.text {
  position: absolute; top: 0; right: 0; z-index: 500;
}
            
          
!
            
              function log(d){  
  document.getElementsByClassName("lc")[0].innerText = d; // JSON.stringify(d);
}

function mapcodes(){
  const d = [
    {
        "timezones": [
            "America/Aruba"
        ], 
        "latlng": [
            12.5, 
            -69.96666666
        ], 
        "name": "Aruba", 
        "country_code": "AW", 
        "capital": "Oranjestad"
    }, 
    {
        "timezones": [
            "Asia/Kabul"
        ], 
        "latlng": [
            33, 
            65
        ], 
        "name": "Afghanistan", 
        "country_code": "AF", 
        "capital": "Kabul"
    }, 
    {
        "timezones": [
            "Africa/Luanda"
        ], 
        "latlng": [
            -12.5, 
            18.5
        ], 
        "name": "Angola", 
        "country_code": "AO", 
        "capital": "Luanda"
    }, 
    {
        "timezones": [
            "America/Anguilla"
        ], 
        "latlng": [
            18.25, 
            -63.16666666
        ], 
        "name": "Anguilla", 
        "country_code": "AI", 
        "capital": "The Valley"
    }, 
    {
        "timezones": [
            "Europe/Mariehamn"
        ], 
        "latlng": [
            60.116667, 
            19.9
        ], 
        "name": "\u00c5land Islands", 
        "country_code": "AX", 
        "capital": "Mariehamn"
    }, 
    {
        "timezones": [
            "Europe/Tirane"
        ], 
        "latlng": [
            41, 
            20
        ], 
        "name": "Albania", 
        "country_code": "AL", 
        "capital": "Tirana"
    }, 
    {
        "timezones": [
            "Europe/Andorra"
        ], 
        "latlng": [
            42.5, 
            1.5
        ], 
        "name": "Andorra", 
        "country_code": "AD", 
        "capital": "Andorra la Vella"
    }, 
    {
        "timezones": [
            "Asia/Dubai"
        ], 
        "latlng": [
            24, 
            54
        ], 
        "name": "United Arab Emirates", 
        "country_code": "AE", 
        "capital": "Abu Dhabi"
    }, 
    {
        "timezones": [
            "America/Argentina/Buenos_Aires", 
            "America/Argentina/Cordoba", 
            "America/Argentina/Salta", 
            "America/Argentina/Jujuy", 
            "America/Argentina/Tucuman", 
            "America/Argentina/Catamarca", 
            "America/Argentina/La_Rioja", 
            "America/Argentina/San_Juan", 
            "America/Argentina/Mendoza", 
            "America/Argentina/San_Luis", 
            "America/Argentina/Rio_Gallegos", 
            "America/Argentina/Ushuaia"
        ], 
        "latlng": [
            -34, 
            -64
        ], 
        "name": "Argentina", 
        "country_code": "AR", 
        "capital": "Buenos Aires"
    }, 
    {
        "timezones": [
            "Asia/Yerevan"
        ], 
        "latlng": [
            40, 
            45
        ], 
        "name": "Armenia", 
        "country_code": "AM", 
        "capital": "Yerevan"
    }, 
    {
        "timezones": [
            "Pacific/Pago_Pago"
        ], 
        "latlng": [
            -14.33333333, 
            -170
        ], 
        "name": "American Samoa", 
        "country_code": "AS", 
        "capital": "Pago Pago"
    }, 
    {
        "timezones": [
            "Antarctica/McMurdo", 
            "Antarctica/Casey", 
            "Antarctica/Davis", 
            "Antarctica/DumontDUrville", 
            "Antarctica/Mawson", 
            "Antarctica/Palmer", 
            "Antarctica/Rothera", 
            "Antarctica/Syowa", 
            "Antarctica/Troll", 
            "Antarctica/Vostok"
        ], 
        "latlng": [
            -90, 
            0
        ], 
        "name": "Antarctica", 
        "country_code": "AQ", 
        "capital": null
    }, 
    {
        "timezones": [
            "Indian/Kerguelen"
        ], 
        "latlng": [
            -49.25, 
            69.167
        ], 
        "name": "French Southern and Antarctic Lands", 
        "country_code": "TF", 
        "capital": "Port-aux-Fran\u00e7ais"
    }, 
    {
        "timezones": [
            "America/Antigua"
        ], 
        "latlng": [
            17.05, 
            -61.8
        ], 
        "name": "Antigua and Barbuda", 
        "country_code": "AG", 
        "capital": "Saint John's"
    }, 
    {
        "timezones": [
            "Australia/Lord_Howe", 
            "Antarctica/Macquarie", 
            "Australia/Hobart", 
            "Australia/Currie", 
            "Australia/Melbourne", 
            "Australia/Sydney", 
            "Australia/Broken_Hill", 
            "Australia/Brisbane", 
            "Australia/Lindeman", 
            "Australia/Adelaide", 
            "Australia/Darwin", 
            "Australia/Perth", 
            "Australia/Eucla"
        ], 
        "latlng": [
            -27, 
            133
        ], 
        "name": "Australia", 
        "country_code": "AU", 
        "capital": "Canberra"
    }, 
    {
        "timezones": [
            "Europe/Vienna"
        ], 
        "latlng": [
            47.33333333, 
            13.33333333
        ], 
        "name": "Austria", 
        "country_code": "AT", 
        "capital": "Vienna"
    }, 
    {
        "timezones": [
            "Asia/Baku"
        ], 
        "latlng": [
            40.5, 
            47.5
        ], 
        "name": "Azerbaijan", 
        "country_code": "AZ", 
        "capital": "Baku"
    }, 
    {
        "timezones": [
            "Africa/Bujumbura"
        ], 
        "latlng": [
            -3.5, 
            30
        ], 
        "name": "Burundi", 
        "country_code": "BI", 
        "capital": "Bujumbura"
    }, 
    {
        "timezones": [
            "Europe/Brussels"
        ], 
        "latlng": [
            50.83333333, 
            4
        ], 
        "name": "Belgium", 
        "country_code": "BE", 
        "capital": "Brussels"
    }, 
    {
        "timezones": [
            "Africa/Porto-Novo"
        ], 
        "latlng": [
            9.5, 
            2.25
        ], 
        "name": "Benin", 
        "country_code": "BJ", 
        "capital": "Porto-Novo"
    }, 
    {
        "timezones": [
            "Africa/Ouagadougou"
        ], 
        "latlng": [
            13, 
            -2
        ], 
        "name": "Burkina Faso", 
        "country_code": "BF", 
        "capital": "Ouagadougou"
    }, 
    {
        "timezones": [
            "Asia/Dhaka"
        ], 
        "latlng": [
            24, 
            90
        ], 
        "name": "Bangladesh", 
        "country_code": "BD", 
        "capital": "Dhaka"
    }, 
    {
        "timezones": [
            "Europe/Sofia"
        ], 
        "latlng": [
            43, 
            25
        ], 
        "name": "Bulgaria", 
        "country_code": "BG", 
        "capital": "Sofia"
    }, 
    {
        "timezones": [
            "Asia/Bahrain"
        ], 
        "latlng": [
            26, 
            50.55
        ], 
        "name": "Bahrain", 
        "country_code": "BH", 
        "capital": "Manama"
    }, 
    {
        "timezones": [
            "America/Nassau"
        ], 
        "latlng": [
            24.25, 
            -76
        ], 
        "name": "Bahamas", 
        "country_code": "BS", 
        "capital": "Nassau"
    }, 
    {
        "timezones": [
            "Europe/Sarajevo"
        ], 
        "latlng": [
            44, 
            18
        ], 
        "name": "Bosnia and Herzegovina", 
        "country_code": "BA", 
        "capital": "Sarajevo"
    }, 
    {
        "timezones": [
            "America/St_Barthelemy"
        ], 
        "latlng": [
            18.5, 
            -63.41666666
        ], 
        "name": "Saint Barth\u00e9lemy", 
        "country_code": "BL", 
        "capital": "Gustavia"
    }, 
    {
        "timezones": [
            "Europe/Minsk"
        ], 
        "latlng": [
            53, 
            28
        ], 
        "name": "Belarus", 
        "country_code": "BY", 
        "capital": "Minsk"
    }, 
    {
        "timezones": [
            "America/Belize"
        ], 
        "latlng": [
            17.25, 
            -88.75
        ], 
        "name": "Belize", 
        "country_code": "BZ", 
        "capital": "Belmopan"
    }, 
    {
        "timezones": [
            "Atlantic/Bermuda"
        ], 
        "latlng": [
            32.33333333, 
            -64.75
        ], 
        "name": "Bermuda", 
        "country_code": "BM", 
        "capital": "Hamilton"
    }, 
    {
        "timezones": [
            "America/La_Paz"
        ], 
        "latlng": [
            -17, 
            -65
        ], 
        "name": "Bolivia", 
        "country_code": "BO", 
        "capital": "Sucre"
    }, 
    {
        "timezones": [
            "America/Noronha", 
            "America/Belem", 
            "America/Fortaleza", 
            "America/Recife", 
            "America/Araguaina", 
            "America/Maceio", 
            "America/Bahia", 
            "America/Sao_Paulo", 
            "America/Campo_Grande", 
            "America/Cuiaba", 
            "America/Santarem", 
            "America/Porto_Velho", 
            "America/Boa_Vista", 
            "America/Manaus", 
            "America/Eirunepe", 
            "America/Rio_Branco"
        ], 
        "latlng": [
            -10, 
            -55
        ], 
        "name": "Brazil", 
        "country_code": "BR", 
        "capital": "Bras\u00edlia"
    }, 
    {
        "timezones": [
            "America/Barbados"
        ], 
        "latlng": [
            13.16666666, 
            -59.53333333
        ], 
        "name": "Barbados", 
        "country_code": "BB", 
        "capital": "Bridgetown"
    }, 
    {
        "timezones": [
            "Asia/Brunei"
        ], 
        "latlng": [
            4.5, 
            114.66666666
        ], 
        "name": "Brunei", 
        "country_code": "BN", 
        "capital": "Bandar Seri Begawan"
    }, 
    {
        "timezones": [
            "Asia/Thimphu"
        ], 
        "latlng": [
            27.5, 
            90.5
        ], 
        "name": "Bhutan", 
        "country_code": "BT", 
        "capital": "Thimphu"
    }, 
    {
        "timezones": [
            "Europe/Oslo"
        ],
        "latlng": [
            -54.43333333, 
            3.4
        ], 
        "name": "Bouvet Island", 
        "country_code": "BV", 
        "capital": null
    }, 
    {
        "timezones": [
            "Africa/Gaborone"
        ], 
        "latlng": [
            -22, 
            24
        ], 
        "name": "Botswana", 
        "country_code": "BW", 
        "capital": "Gaborone"
    }, 
    {
        "timezones": [
            "Africa/Bangui"
        ], 
        "latlng": [
            7, 
            21
        ], 
        "name": "Central African Republic", 
        "country_code": "CF", 
        "capital": "Bangui"
    }, 
    {
        "timezones": [
            "America/St_Johns", 
            "America/Halifax", 
            "America/Glace_Bay", 
            "America/Moncton", 
            "America/Goose_Bay", 
            "America/Blanc-Sablon", 
            "America/Toronto", 
            "America/Nipigon", 
            "America/Thunder_Bay", 
            "America/Iqaluit", 
            "America/Pangnirtung", 
            "America/Atikokan", 
            "America/Winnipeg", 
            "America/Rainy_River", 
            "America/Resolute", 
            "America/Rankin_Inlet", 
            "America/Regina", 
            "America/Swift_Current", 
            "America/Edmonton", 
            "America/Cambridge_Bay", 
            "America/Yellowknife", 
            "America/Inuvik", 
            "America/Creston", 
            "America/Dawson_Creek", 
            "America/Fort_Nelson", 
            "America/Vancouver", 
            "America/Whitehorse", 
            "America/Dawson"
        ], 
        "latlng": [
            60, 
            -95
        ], 
        "name": "Canada", 
        "country_code": "CA", 
        "capital": "Ottawa"
    }, 
    {
        "timezones": [
            "Indian/Cocos"
        ], 
        "latlng": [
            -12.5, 
            96.83333333
        ], 
        "name": "Cocos (Keeling) Islands", 
        "country_code": "CC", 
        "capital": "West Island"
    }, 
    {
        "timezones": [
            "Europe/Zurich"
        ], 
        "latlng": [
            47, 
            8
        ], 
        "name": "Switzerland", 
        "country_code": "CH", 
        "capital": "Bern"
    }, 
    {
        "timezones": [
            "America/Santiago", 
            "Pacific/Easter"
        ], 
        "latlng": [
            -30, 
            -71
        ], 
        "name": "Chile", 
        "country_code": "CL", 
        "capital": "Santiago"
    }, 
    {
        "timezones": [
            "Asia/Shanghai", 
            "Asia/Urumqi"
        ], 
        "latlng": [
            35, 
            105
        ], 
        "name": "China", 
        "country_code": "CN", 
        "capital": "Beijing"
    }, 
    {
        "timezones": [
            "Africa/Abidjan"
        ], 
        "latlng": [
            8, 
            -5
        ], 
        "name": "Ivory Coast", 
        "country_code": "CI", 
        "capital": "Yamoussoukro"
    }, 
    {
        "timezones": [
            "Africa/Douala"
        ], 
        "latlng": [
            6, 
            12
        ], 
        "name": "Cameroon", 
        "country_code": "CM", 
        "capital": "Yaound\u00e9"
    }, 
    {
        "timezones": [
            "Africa/Kinshasa", 
            "Africa/Lubumbashi"
        ], 
        "latlng": [
            0, 
            25
        ], 
        "name": "DR Congo", 
        "country_code": "CD", 
        "capital": "Kinshasa"
    }, 
    {
        "timezones": [
            "Africa/Brazzaville"
        ], 
        "latlng": [
            -1, 
            15
        ], 
        "name": "Republic of the Congo", 
        "country_code": "CG", 
        "capital": "Brazzaville"
    }, 
    {
        "timezones": [
            "Pacific/Rarotonga"
        ], 
        "latlng": [
            -21.23333333, 
            -159.76666666
        ], 
        "name": "Cook Islands", 
        "country_code": "CK", 
        "capital": "Avarua"
    }, 
    {
        "timezones": [
            "America/Bogota"
        ], 
        "latlng": [
            4, 
            -72
        ], 
        "name": "Colombia", 
        "country_code": "CO", 
        "capital": "Bogot\u00e1"
    }, 
    {
        "timezones": [
            "Indian/Comoro"
        ], 
        "latlng": [
            -12.16666666, 
            44.25
        ], 
        "name": "Comoros", 
        "country_code": "KM", 
        "capital": "Moroni"
    }, 
    {
        "timezones": [
            "Atlantic/Cape_Verde"
        ], 
        "latlng": [
            16, 
            -24
        ], 
        "name": "Cape Verde", 
        "country_code": "CV", 
        "capital": "Praia"
    }, 
    {
        "timezones": [
            "America/Costa_Rica"
        ], 
        "latlng": [
            10, 
            -84
        ], 
        "name": "Costa Rica", 
        "country_code": "CR", 
        "capital": "San Jos\u00e9"
    }, 
    {
        "timezones": [
            "America/Havana"
        ], 
        "latlng": [
            21.5, 
            -80
        ], 
        "name": "Cuba", 
        "country_code": "CU", 
        "capital": "Havana"
    }, 
    {
        "timezones": [
            "America/Curacao"
        ], 
        "latlng": [
            12.116667, 
            -68.933333
        ], 
        "name": "Cura\u00e7ao", 
        "country_code": "CW", 
        "capital": "Willemstad"
    }, 
    {
        "timezones": [
            "Indian/Christmas"
        ], 
        "latlng": [
            -10.5, 
            105.66666666
        ], 
        "name": "Christmas Island", 
        "country_code": "CX", 
        "capital": "Flying Fish Cove"
    }, 
    {
        "timezones": [
            "America/Cayman"
        ], 
        "latlng": [
            19.5, 
            -80.5
        ], 
        "name": "Cayman Islands", 
        "country_code": "KY", 
        "capital": "George Town"
    }, 
    {
        "timezones": [
            "Asia/Nicosia"
        ], 
        "latlng": [
            35, 
            33
        ], 
        "name": "Cyprus", 
        "country_code": "CY", 
        "capital": "Nicosia"
    }, 
    {
        "timezones": [
            "Europe/Prague"
        ], 
        "latlng": [
            49.75, 
            15.5
        ], 
        "name": "Czech Republic", 
        "country_code": "CZ", 
        "capital": "Prague"
    }, 
    {
        "timezones": [
            "Europe/Berlin", 
            "Europe/Busingen"
        ], 
        "latlng": [
            51, 
            9
        ], 
        "name": "Germany", 
        "country_code": "DE", 
        "capital": "Berlin"
    }, 
    {
        "timezones": [
            "Africa/Djibouti"
        ], 
        "latlng": [
            11.5, 
            43
        ], 
        "name": "Djibouti", 
        "country_code": "DJ", 
        "capital": "Djibouti"
    }, 
    {
        "timezones": [
            "America/Dominica"
        ], 
        "latlng": [
            15.41666666, 
            -61.33333333
        ], 
        "name": "Dominica", 
        "country_code": "DM", 
        "capital": "Roseau"
    }, 
    {
        "timezones": [
            "Europe/Copenhagen"
        ], 
        "latlng": [
            56, 
            10
        ], 
        "name": "Denmark", 
        "country_code": "DK", 
        "capital": "Copenhagen"
    }, 
    {
        "timezones": [
            "America/Santo_Domingo"
        ], 
        "latlng": [
            19, 
            -70.66666666
        ], 
        "name": "Dominican Republic", 
        "country_code": "DO", 
        "capital": "Santo Domingo"
    }, 
    {
        "timezones": [
            "Africa/Algiers"
        ], 
        "latlng": [
            28, 
            3
        ], 
        "name": "Algeria", 
        "country_code": "DZ", 
        "capital": "Algiers"
    }, 
    {
        "timezones": [
            "America/Guayaquil", 
            "Pacific/Galapagos"
        ], 
        "latlng": [
            -2, 
            -77.5
        ], 
        "name": "Ecuador", 
        "country_code": "EC", 
        "capital": "Quito"
    }, 
    {
        "timezones": [
            "Africa/Cairo"
        ], 
        "latlng": [
            27, 
            30
        ], 
        "name": "Egypt", 
        "country_code": "EG", 
        "capital": "Cairo"
    }, 
    {
        "timezones": [
            "Africa/Asmara"
        ], 
        "latlng": [
            15, 
            39
        ], 
        "name": "Eritrea", 
        "country_code": "ER", 
        "capital": "Asmara"
    }, 
    {
        "timezones": [
            "Africa/El_Aaiun"
        ], 
        "latlng": [
            24.5, 
            -13
        ], 
        "name": "Western Sahara", 
        "country_code": "EH", 
        "capital": "El Aai\u00fan"
    }, 
    {
        "timezones": [
            "Europe/Madrid", 
            "Africa/Ceuta", 
            "Atlantic/Canary"
        ], 
        "latlng": [
            40, 
            -4
        ], 
        "name": "Spain", 
        "country_code": "ES", 
        "capital": "Madrid"
    }, 
    {
        "timezones": [
            "Europe/Tallinn"
        ], 
        "latlng": [
            59, 
            26
        ], 
        "name": "Estonia", 
        "country_code": "EE", 
        "capital": "Tallinn"
    }, 
    {
        "timezones": [
            "Africa/Addis_Ababa"
        ], 
        "latlng": [
            8, 
            38
        ], 
        "name": "Ethiopia", 
        "country_code": "ET", 
        "capital": "Addis Ababa"
    }, 
    {
        "timezones": [
            "Europe/Helsinki"
        ], 
        "latlng": [
            64, 
            26
        ], 
        "name": "Finland", 
        "country_code": "FI", 
        "capital": "Helsinki"
    }, 
    {
        "timezones": [
            "Pacific/Fiji"
        ], 
        "latlng": [
            -18, 
            175
        ], 
        "name": "Fiji", 
        "country_code": "FJ", 
        "capital": "Suva"
    }, 
    {
        "timezones": [
            "Atlantic/Stanley"
        ], 
        "latlng": [
            -51.75, 
            -59
        ], 
        "name": "Falkland Islands", 
        "country_code": "FK", 
        "capital": "Stanley"
    }, 
    {
        "timezones": [
            "Europe/Paris"
        ], 
        "latlng": [
            46, 
            2
        ], 
        "name": "France", 
        "country_code": "FR", 
        "capital": "Paris"
    }, 
    {
        "timezones": [
            "Atlantic/Faroe"
        ], 
        "latlng": [
            62, 
            -7
        ], 
        "name": "Faroe Islands", 
        "country_code": "FO", 
        "capital": "T\u00f3rshavn"
    }, 
    {
        "timezones": [
            "Pacific/Chuuk", 
            "Pacific/Pohnpei", 
            "Pacific/Kosrae"
        ], 
        "latlng": [
            6.91666666, 
            158.25
        ], 
        "name": "Micronesia", 
        "country_code": "FM", 
        "capital": "Palikir"
    }, 
    {
        "timezones": [
            "Africa/Libreville"
        ], 
        "latlng": [
            -1, 
            11.75
        ], 
        "name": "Gabon", 
        "country_code": "GA", 
        "capital": "Libreville"
    }, 
    {
        "timezones": [
            "Europe/London"
        ], 
        "latlng": [
            54, 
            -2
        ], 
        "name": "United Kingdom", 
        "country_code": "GB", 
        "capital": "London"
    }, 
    {
        "timezones": [
            "Asia/Tbilisi"
        ], 
        "latlng": [
            42, 
            43.5
        ], 
        "name": "Georgia", 
        "country_code": "GE", 
        "capital": "Tbilisi"
    }, 
    {
        "timezones": [
            "Europe/Guernsey"
        ], 
        "latlng": [
            49.46666666, 
            -2.58333333
        ], 
        "name": "Guernsey", 
        "country_code": "GG", 
        "capital": "St. Peter Port"
    }, 
    {
        "timezones": [
            "Africa/Accra"
        ], 
        "latlng": [
            8, 
            -2
        ], 
        "name": "Ghana", 
        "country_code": "GH", 
        "capital": "Accra"
    }, 
    {
        "timezones": [
            "Europe/Gibraltar"
        ], 
        "latlng": [
            36.13333333, 
            -5.35
        ], 
        "name": "Gibraltar", 
        "country_code": "GI", 
        "capital": "Gibraltar"
    }, 
    {
        "timezones": [
            "Africa/Conakry"
        ], 
        "latlng": [
            11, 
            -10
        ], 
        "name": "Guinea", 
        "country_code": "GN", 
        "capital": "Conakry"
    }, 
    {
        "timezones": [
            "America/Guadeloupe"
        ], 
        "latlng": [
            16.25, 
            -61.583333
        ], 
        "name": "Guadeloupe", 
        "country_code": "GP", 
        "capital": "Basse-Terre"
    }, 
    {
        "timezones": [
            "Africa/Banjul"
        ], 
        "latlng": [
            13.46666666, 
            -16.56666666
        ], 
        "name": "Gambia", 
        "country_code": "GM", 
        "capital": "Banjul"
    }, 
    {
        "timezones": [
            "Africa/Bissau"
        ], 
        "latlng": [
            12, 
            -15
        ], 
        "name": "Guinea-Bissau", 
        "country_code": "GW", 
        "capital": "Bissau"
    }, 
    {
        "timezones": [
            "Africa/Malabo"
        ], 
        "latlng": [
            2, 
            10
        ], 
        "name": "Equatorial Guinea", 
        "country_code": "GQ", 
        "capital": "Malabo"
    }, 
    {
        "timezones": [
            "Europe/Athens"
        ], 
        "latlng": [
            39, 
            22
        ], 
        "name": "Greece", 
        "country_code": "GR", 
        "capital": "Athens"
    }, 
    {
        "timezones": [
            "America/Grenada"
        ], 
        "latlng": [
            12.11666666, 
            -61.66666666
        ], 
        "name": "Grenada", 
        "country_code": "GD", 
        "capital": "St. George's"
    }, 
    {
        "timezones": [
            "America/Godthab", 
            "America/Danmarkshavn", 
            "America/Scoresbysund", 
            "America/Thule"
        ], 
        "latlng": [
            72, 
            -40
        ], 
        "name": "Greenland", 
        "country_code": "GL", 
        "capital": "Nuuk"
    }, 
    {
        "timezones": [
            "America/Guatemala"
        ], 
        "latlng": [
            15.5, 
            -90.25
        ], 
        "name": "Guatemala", 
        "country_code": "GT", 
        "capital": "Guatemala City"
    }, 
    {
        "timezones": [
            "America/Cayenne"
        ], 
        "latlng": [
            4, 
            -53
        ], 
        "name": "French Guiana", 
        "country_code": "GF", 
        "capital": "Cayenne"
    }, 
    {
        "timezones": [
            "Pacific/Guam"
        ], 
        "latlng": [
            13.46666666, 
            144.78333333
        ], 
        "name": "Guam", 
        "country_code": "GU", 
        "capital": "Hag\u00e5t\u00f1a"
    }, 
    {
        "timezones": [
            "America/Guyana"
        ], 
        "latlng": [
            5, 
            -59
        ], 
        "name": "Guyana", 
        "country_code": "GY", 
        "capital": "Georgetown"
    }, 
    {
        "timezones": [
            "Asia/Hong_Kong"
        ], 
        "latlng": [
            22.267, 
            114.188
        ], 
        "name": "Hong Kong", 
        "country_code": "HK", 
        "capital": "City of Victoria"
    },
    {
        "timezones": [
            "America/Tegucigalpa"
        ], 
        "latlng": [
            15, 
            -86.5
        ], 
        "name": "Honduras", 
        "country_code": "HN", 
        "capital": "Tegucigalpa"
    }, 
    {
        "timezones": [
            "Europe/Zagreb"
        ], 
        "latlng": [
            45.16666666, 
            15.5
        ], 
        "name": "Croatia", 
        "country_code": "HR", 
        "capital": "Zagreb"
    }, 
    {
        "timezones": [
            "America/Port-au-Prince"
        ], 
        "latlng": [
            19, 
            -72.41666666
        ], 
        "name": "Haiti", 
        "country_code": "HT", 
        "capital": "Port-au-Prince"
    }, 
    {
        "timezones": [
            "Europe/Budapest"
        ], 
        "latlng": [
            47, 
            20
        ], 
        "name": "Hungary", 
        "country_code": "HU", 
        "capital": "Budapest"
    }, 
    {
        "timezones": [
            "Asia/Jakarta", 
            "Asia/Pontianak", 
            "Asia/Makassar", 
            "Asia/Jayapura"
        ], 
        "latlng": [
            -5, 
            120
        ], 
        "name": "Indonesia", 
        "country_code": "ID", 
        "capital": "Jakarta"
    }, 
    {
        "timezones": [
            "Europe/Isle_of_Man"
        ], 
        "latlng": [
            54.25, 
            -4.5
        ], 
        "name": "Isle of Man", 
        "country_code": "IM", 
        "capital": "Douglas"
    }, 
    {
        "timezones": [
            "Asia/Kolkata"
        ], 
        "latlng": [
            20, 
            77
        ], 
        "name": "India", 
        "country_code": "IN", 
        "capital": "New Delhi"
    }, 
    {
        "timezones": [
            "Indian/Chagos"
        ], 
        "latlng": [
            -6, 
            71.5
        ], 
        "name": "British Indian Ocean Territory", 
        "country_code": "IO", 
        "capital": "Diego Garcia"
    }, 
    {
        "timezones": [
            "Europe/Dublin"
        ], 
        "latlng": [
            53, 
            -8
        ], 
        "name": "Ireland", 
        "country_code": "IE", 
        "capital": "Dublin"
    }, 
    {
        "timezones": [
            "Asia/Tehran"
        ], 
        "latlng": [
            32, 
            53
        ], 
        "name": "Iran", 
        "country_code": "IR", 
        "capital": "Tehran"
    }, 
    {
        "timezones": [
            "Asia/Baghdad"
        ], 
        "latlng": [
            33, 
            44
        ], 
        "name": "Iraq", 
        "country_code": "IQ", 
        "capital": "Baghdad"
    }, 
    {
        "timezones": [
            "Atlantic/Reykjavik"
        ], 
        "latlng": [
            65, 
            -18
        ], 
        "name": "Iceland", 
        "country_code": "IS", 
        "capital": "Reykjavik"
    }, 
    {
        "timezones": [
            "Asia/Jerusalem"
        ], 
        "latlng": [
            31.47, 
            35.13
        ], 
        "name": "Israel", 
        "country_code": "IL", 
        "capital": "Jerusalem"
    }, 
    {
        "timezones": [
            "Europe/Rome"
        ], 
        "latlng": [
            42.83333333, 
            12.83333333
        ], 
        "name": "Italy", 
        "country_code": "IT", 
        "capital": "Rome"
    }, 
    {
        "timezones": [
            "America/Jamaica"
        ], 
        "latlng": [
            18.25, 
            -77.5
        ], 
        "name": "Jamaica", 
        "country_code": "JM", 
        "capital": "Kingston"
    }, 
    {
        "timezones": [
            "Europe/Jersey"
        ], 
        "latlng": [
            49.25, 
            -2.16666666
        ], 
        "name": "Jersey", 
        "country_code": "JE", 
        "capital": "Saint Helier"
    }, 
    {
        "timezones": [
            "Asia/Amman"
        ], 
        "latlng": [
            31, 
            36
        ], 
        "name": "Jordan", 
        "country_code": "JO", 
        "capital": "Amman"
    }, 
    {
        "timezones": [
            "Asia/Tokyo"
        ], 
        "latlng": [
            36, 
            138
        ], 
        "name": "Japan", 
        "country_code": "JP", 
        "capital": "Tokyo"
    }, 
    {
        "timezones": [
            "Asia/Almaty", 
            "Asia/Qyzylorda", 
            "Asia/Aqtobe", 
            "Asia/Aqtau", 
            "Asia/Oral"
        ], 
        "latlng": [
            48, 
            68
        ], 
        "name": "Kazakhstan", 
        "country_code": "KZ", 
        "capital": "Astana"
    }, 
    {
        "timezones": [
            "Africa/Nairobi"
        ], 
        "latlng": [
            1, 
            38
        ], 
        "name": "Kenya", 
        "country_code": "KE", 
        "capital": "Nairobi"
    }, 
    {
        "timezones": [
            "Asia/Bishkek"
        ], 
        "latlng": [
            41, 
            75
        ], 
        "name": "Kyrgyzstan", 
        "country_code": "KG", 
        "capital": "Bishkek"
    }, 
    {
        "timezones": [
            "Asia/Phnom_Penh"
        ], 
        "latlng": [
            13, 
            105
        ], 
        "name": "Cambodia", 
        "country_code": "KH", 
        "capital": "Phnom Penh"
    }, 
    {
        "timezones": [
            "Pacific/Tarawa", 
            "Pacific/Enderbury", 
            "Pacific/Kiritimati"
        ], 
        "latlng": [
            1.41666666, 
            173
        ], 
        "name": "Kiribati", 
        "country_code": "KI", 
        "capital": "South Tarawa"
    }, 
    {
        "timezones": [
            "America/St_Kitts"
        ], 
        "latlng": [
            17.33333333, 
            -62.75
        ], 
        "name": "Saint Kitts and Nevis", 
        "country_code": "KN", 
        "capital": "Basseterre"
    }, 
    {
        "timezones": [
            "Asia/Seoul"
        ], 
        "latlng": [
            37, 
            127.5
        ], 
        "name": "South Korea", 
        "country_code": "KR", 
        "capital": "Seoul"
    }, 
    {
        "timezones": ["Europe/Belgrade"], 
        "latlng": [
            42.666667, 
            21.166667
        ], 
        "name": "Kosovo", 
        "country_code": "XK", 
        "capital": "Pristina"
    }, 
    {
        "timezones": [
            "Asia/Kuwait"
        ], 
        "latlng": [
            29.5, 
            45.75
        ], 
        "name": "Kuwait", 
        "country_code": "KW", 
        "capital": "Kuwait City"
    }, 
    {
        "timezones": [
            "Asia/Vientiane"
        ], 
        "latlng": [
            18, 
            105
        ], 
        "name": "Laos", 
        "country_code": "LA", 
        "capital": "Vientiane"
    }, 
    {
        "timezones": [
            "Asia/Beirut"
        ], 
        "latlng": [
            33.83333333, 
            35.83333333
        ], 
        "name": "Lebanon", 
        "country_code": "LB", 
        "capital": "Beirut"
    }, 
    {
        "timezones": [
            "Africa/Monrovia"
        ], 
        "latlng": [
            6.5, 
            -9.5
        ], 
        "name": "Liberia", 
        "country_code": "LR", 
        "capital": "Monrovia"
    }, 
    {
        "timezones": [
            "Africa/Tripoli"
        ], 
        "latlng": [
            25, 
            17
        ], 
        "name": "Libya", 
        "country_code": "LY", 
        "capital": "Tripoli"
    }, 
    {
        "timezones": [
            "America/St_Lucia"
        ], 
        "latlng": [
            13.88333333, 
            -60.96666666
        ], 
        "name": "Saint Lucia", 
        "country_code": "LC", 
        "capital": "Castries"
    }, 
    {
        "timezones": [
            "Europe/Vaduz"
        ], 
        "latlng": [
            47.26666666, 
            9.53333333
        ], 
        "name": "Liechtenstein", 
        "country_code": "LI", 
        "capital": "Vaduz"
    }, 
    {
        "timezones": [
            "Asia/Colombo"
        ], 
        "latlng": [
            7, 
            81
        ], 
        "name": "Sri Lanka", 
        "country_code": "LK", 
        "capital": "Colombo"
    }, 
    {
        "timezones": [
            "Africa/Maseru"
        ], 
        "latlng": [
            -29.5, 
            28.5
        ], 
        "name": "Lesotho", 
        "country_code": "LS", 
        "capital": "Maseru"
    }, 
    {
        "timezones": [
            "Europe/Vilnius"
        ], 
        "latlng": [
            56, 
            24
        ], 
        "name": "Lithuania", 
        "country_code": "LT", 
        "capital": "Vilnius"
    }, 
    {
        "timezones": [
            "Europe/Luxembourg"
        ], 
        "latlng": [
            49.75, 
            6.16666666
        ], 
        "name": "Luxembourg", 
        "country_code": "LU", 
        "capital": "Luxembourg"
    }, 
    {
        "timezones": [
            "Europe/Riga"
        ], 
        "latlng": [
            57, 
            25
        ], 
        "name": "Latvia", 
        "country_code": "LV", 
        "capital": "Riga"
    }, 
    {
        "timezones": [
            "Asia/Macau"
        ], 
        "latlng": [
            22.16666666, 
            113.55
        ], 
        "name": "Macau", 
        "country_code": "MO", 
        "capital": null
    }, 
    {
        "timezones": [
            "America/Marigot"
        ], 
        "latlng": [
            18.08333333, 
            -63.95
        ], 
        "name": "Saint Martin", 
        "country_code": "MF", 
        "capital": "Marigot"
    }, 
    {
        "timezones": [
            "Africa/Casablanca"
        ], 
        "latlng": [
            32, 
            -5
        ], 
        "name": "Morocco", 
        "country_code": "MA", 
        "capital": "Rabat"
    }, 
    {
        "timezones": [
            "Europe/Monaco"
        ], 
        "latlng": [
            43.73333333, 
            7.4
        ], 
        "name": "Monaco", 
        "country_code": "MC", 
        "capital": "Monaco"
    }, 
    {
        "timezones": [
            "Europe/Chisinau"
        ], 
        "latlng": [
            47, 
            29
        ], 
        "name": "Moldova", 
        "country_code": "MD", 
        "capital": "Chi\u0219in\u0103u"
    }, 
    {
        "timezones": [
            "Indian/Antananarivo"
        ], 
        "latlng": [
            -20, 
            47
        ], 
        "name": "Madagascar", 
        "country_code": "MG", 
        "capital": "Antananarivo"
    }, 
    {
        "timezones": [
            "Indian/Maldives"
        ], 
        "latlng": [
            3.25, 
            73
        ], 
        "name": "Maldives", 
        "country_code": "MV", 
        "capital": "Mal\u00e9"
    }, 
    {
        "timezones": [
            "America/Mexico_City", 
            "America/Cancun", 
            "America/Merida", 
            "America/Monterrey", 
            "America/Matamoros", 
            "America/Mazatlan", 
            "America/Chihuahua", 
            "America/Ojinaga", 
            "America/Hermosillo", 
            "America/Tijuana", 
            "America/Bahia_Banderas"
        ], 
        "latlng": [
            23, 
            -102
        ], 
        "name": "Mexico", 
        "country_code": "MX", 
        "capital": "Mexico City"
    }, 
    {
        "timezones": [
            "Pacific/Majuro", 
            "Pacific/Kwajalein"
        ], 
        "latlng": [
            9, 
            168
        ], 
        "name": "Marshall Islands", 
        "country_code": "MH", 
        "capital": "Majuro"
    }, 
    {
        "timezones": [
            "Europe/Skopje"
        ], 
        "latlng": [
            41.83333333, 
            22
        ], 
        "name": "Macedonia", 
        "country_code": "MK", 
        "capital": "Skopje"
    }, 
    {
        "timezones": [
            "Africa/Bamako"
        ], 
        "latlng": [
            17, 
            -4
        ], 
        "name": "Mali", 
        "country_code": "ML", 
        "capital": "Bamako"
    }, 
    {
        "timezones": [
            "Europe/Malta"
        ], 
        "latlng": [
            35.83333333, 
            14.58333333
        ], 
        "name": "Malta", 
        "country_code": "MT", 
        "capital": "Valletta"
    }, 
    {
        "timezones": [
            "Asia/Rangoon"
        ], 
        "latlng": [
            22, 
            98
        ], 
        "name": "Myanmar", 
        "country_code": "MM", 
        "capital": "Naypyidaw"
    }, 
    {
        "timezones": [
            "Europe/Podgorica"
        ], 
        "latlng": [
            42.5, 
            19.3
        ], 
        "name": "Montenegro", 
        "country_code": "ME", 
        "capital": "Podgorica"
    }, 
    {
        "timezones": [
            "Asia/Ulaanbaatar", 
            "Asia/Hovd", 
            "Asia/Choibalsan"
        ], 
        "latlng": [
            46, 
            105
        ], 
        "name": "Mongolia", 
        "country_code": "MN", 
        "capital": "Ulan Bator"
    }, 
    {
        "timezones": [
            "Pacific/Saipan"
        ], 
        "latlng": [
            15.2, 
            145.75
        ], 
        "name": "Northern Mariana Islands", 
        "country_code": "MP", 
        "capital": "Saipan"
    }, 
    {
        "timezones": [
            "Africa/Maputo"
        ], 
        "latlng": [
            -18.25, 
            35
        ], 
        "name": "Mozambique", 
        "country_code": "MZ", 
        "capital": "Maputo"
    }, 
    {
        "timezones": [
            "Africa/Nouakchott"
        ], 
        "latlng": [
            20, 
            -12
        ], 
        "name": "Mauritania", 
        "country_code": "MR", 
        "capital": "Nouakchott"
    }, 
    {
        "timezones": [
            "America/Montserrat"
        ], 
        "latlng": [
            16.75, 
            -62.2
        ], 
        "name": "Montserrat", 
        "country_code": "MS", 
        "capital": "Plymouth"
    }, 
    {
        "timezones": [
            "America/Martinique"
        ], 
        "latlng": [
            14.666667, 
            -61
        ], 
        "name": "Martinique", 
        "country_code": "MQ", 
        "capital": "Fort-de-France"
    }, 
    {
        "timezones": [
            "Indian/Mauritius"
        ], 
        "latlng": [
            -20.28333333, 
            57.55
        ], 
        "name": "Mauritius", 
        "country_code": "MU", 
        "capital": "Port Louis"
    }, 
    {
        "timezones": [
            "Africa/Blantyre"
        ], 
        "latlng": [
            -13.5, 
            34
        ], 
        "name": "Malawi", 
        "country_code": "MW", 
        "capital": "Lilongwe"
    }, 
    {
        "timezones": [
            "Asia/Kuala_Lumpur", 
            "Asia/Kuching"
        ], 
        "latlng": [
            2.5, 
            112.5
        ], 
        "name": "Malaysia", 
        "country_code": "MY", 
        "capital": "Kuala Lumpur"
    }, 
    {
        "timezones": [
            "Indian/Mayotte"
        ], 
        "latlng": [
            -12.83333333, 
            45.16666666
        ], 
        "name": "Mayotte", 
        "country_code": "YT", 
        "capital": "Mamoudzou"
    }, 
    {
        "timezones": [
            "Africa/Windhoek"
        ], 
        "latlng": [
            -22, 
            17
        ], 
        "name": "Namibia", 
        "country_code": "NA", 
        "capital": "Windhoek"
    }, 
    {
        "timezones": [
            "Pacific/Noumea"
        ], 
        "latlng": [
            -21.5, 
            165.5
        ], 
        "name": "New Caledonia", 
        "country_code": "NC", 
        "capital": "Noum\u00e9a"
    }, 
    {
        "timezones": [
            "Africa/Niamey"
        ], 
        "latlng": [
            16, 
            8
        ], 
        "name": "Niger", 
        "country_code": "NE", 
        "capital": "Niamey"
    }, 
    {
        "timezones": [
            "Pacific/Norfolk"
        ], 
        "latlng": [
            -29.03333333, 
            167.95
        ], 
        "name": "Norfolk Island", 
        "country_code": "NF", 
        "capital": "Kingston"
    }, 
    {
        "timezones": [
            "Africa/Lagos"
        ], 
        "latlng": [
            10, 
            8
        ], 
        "name": "Nigeria", 
        "country_code": "NG", 
        "capital": "Abuja"
    }, 
    {
        "timezones": [
            "America/Managua"
        ], 
        "latlng": [
            13, 
            -85
        ], 
        "name": "Nicaragua", 
        "country_code": "NI", 
        "capital": "Managua"
    }, 
    {
        "timezones": [
            "Pacific/Niue"
        ], 
        "latlng": [
            -19.03333333, 
            -169.86666666
        ], 
        "name": "Niue", 
        "country_code": "NU", 
        "capital": "Alofi"
    }, 
    {
        "timezones": [
            "Europe/Amsterdam"
        ], 
        "latlng": [
            52.5, 
            5.75
        ], 
        "name": "Netherlands", 
        "country_code": "NL", 
        "capital": "Amsterdam"
    }, 
    {
        "timezones": [
            "Europe/Oslo"
        ], 
        "latlng": [
            62, 
            10
        ], 
        "name": "Norway", 
        "country_code": "NO", 
        "capital": "Oslo"
    }, 
    {
        "timezones": [
            "Asia/Kathmandu"
        ], 
        "latlng": [
            28, 
            84
        ], 
        "name": "Nepal", 
        "country_code": "NP", 
        "capital": "Kathmandu"
    }, 
    {
        "timezones": [
            "Pacific/Nauru"
        ], 
        "latlng": [
            -0.53333333, 
            166.91666666
        ], 
        "name": "Nauru", 
        "country_code": "NR", 
        "capital": "Yaren"
    }, 
    {
        "timezones": [
            "Pacific/Auckland", 
            "Pacific/Chatham"
        ], 
        "latlng": [
            -41, 
            174
        ], 
        "name": "New Zealand", 
        "country_code": "NZ", 
        "capital": "Wellington"
    }, 
    {
        "timezones": [
            "Asia/Muscat"
        ], 
        "latlng": [
            21, 
            57
        ], 
        "name": "Oman", 
        "country_code": "OM", 
        "capital": "Muscat"
    }, 
    {
        "timezones": [
            "Asia/Karachi"
        ], 
        "latlng": [
            30, 
            70
        ], 
        "name": "Pakistan", 
        "country_code": "PK", 
        "capital": "Islamabad"
    }, 
    {
        "timezones": [
            "America/Panama"
        ], 
        "latlng": [
            9, 
            -80
        ], 
        "name": "Panama", 
        "country_code": "PA", 
        "capital": "Panama City"
    }, 
    {
        "timezones": [
            "Pacific/Pitcairn"
        ], 
        "latlng": [
            -25.06666666, 
            -130.1
        ], 
        "name": "Pitcairn Islands", 
        "country_code": "PN", 
        "capital": "Adamstown"
    }, 
    {
        "timezones": [
            "America/Lima"
        ], 
        "latlng": [
            -10, 
            -76
        ], 
        "name": "Peru", 
        "country_code": "PE", 
        "capital": "Lima"
    }, 
    {
        "timezones": [
            "Asia/Manila"
        ], 
        "latlng": [
            13, 
            122
        ], 
        "name": "Philippines", 
        "country_code": "PH", 
        "capital": "Manila"
    }, 
    {
        "timezones": [
            "Pacific/Palau"
        ], 
        "latlng": [
            7.5, 
            134.5
        ], 
        "name": "Palau", 
        "country_code": "PW", 
        "capital": "Ngerulmud"
    }, 
    {
        "timezones": [
            "Pacific/Port_Moresby", 
            "Pacific/Bougainville"
        ], 
        "latlng": [
            -6, 
            147
        ], 
        "name": "Papua New Guinea", 
        "country_code": "PG", 
        "capital": "Port Moresby"
    }, 
    {
        "timezones": [
            "Europe/Warsaw"
        ], 
        "latlng": [
            52, 
            20
        ], 
        "name": "Poland", 
        "country_code": "PL", 
        "capital": "Warsaw"
    }, 
    {
        "timezones": [
            "America/Puerto_Rico"
        ], 
        "latlng": [
            18.25, 
            -66.5
        ], 
        "name": "Puerto Rico", 
        "country_code": "PR", 
        "capital": "San Juan"
    }, 
    {
        "timezones": [
            "Asia/Pyongyang"
        ], 
        "latlng": [
            40, 
            127
        ], 
        "name": "North Korea", 
        "country_code": "KP", 
        "capital": "Pyongyang"
    }, 
    {
        "timezones": [
            "Europe/Lisbon", 
            "Atlantic/Madeira", 
            "Atlantic/Azores"
        ], 
        "latlng": [
            39.5, 
            -8
        ], 
        "name": "Portugal", 
        "country_code": "PT", 
        "capital": "Lisbon"
    }, 
    {
        "timezones": [
            "America/Asuncion"
        ], 
        "latlng": [
            -23, 
            -58
        ], 
        "name": "Paraguay", 
        "country_code": "PY", 
        "capital": "Asunci\u00f3n"
    }, 
    {
        "timezones": [
            "Asia/Gaza", 
            "Asia/Hebron"
        ], 
        "latlng": [
            31.9, 
            35.2
        ], 
        "name": "Palestine", 
        "country_code": "PS", 
        "capital": "Ramallah"
    }, 
    {
        "timezones": [
            "Pacific/Tahiti", 
            "Pacific/Marquesas", 
            "Pacific/Gambier"
        ], 
        "latlng": [
            -15, 
            -140
        ], 
        "name": "French Polynesia", 
        "country_code": "PF", 
        "capital": "Papeet\u0113"
    }, 
    {
        "timezones": [
            "Asia/Qatar"
        ], 
        "latlng": [
            25.5, 
            51.25
        ], 
        "name": "Qatar", 
        "country_code": "QA", 
        "capital": "Doha"
    }, 
    {
        "timezones": [
            "Indian/Reunion"
        ], 
        "latlng": [
            -21.15, 
            55.5
        ], 
        "name": "R\u00e9union", 
        "country_code": "RE", 
        "capital": "Saint-Denis"
    }, 
    {
        "timezones": [
            "Europe/Bucharest"
        ], 
        "latlng": [
            46, 
            25
        ], 
        "name": "Romania", 
        "country_code": "RO", 
        "capital": "Bucharest"
    }, 
    {
        "timezones": [
            "Europe/Kaliningrad", 
            "Europe/Moscow", 
            "Europe/Simferopol", 
            "Europe/Volgograd", 
            "Europe/Kirov", 
            "Europe/Astrakhan", 
            "Europe/Samara", 
            "Europe/Ulyanovsk", 
            "Asia/Yekaterinburg", 
            "Asia/Omsk", 
            "Asia/Novosibirsk", 
            "Asia/Barnaul", 
            "Asia/Tomsk", 
            "Asia/Novokuznetsk", 
            "Asia/Krasnoyarsk", 
            "Asia/Irkutsk", 
            "Asia/Chita", 
            "Asia/Yakutsk", 
            "Asia/Khandyga", 
            "Asia/Vladivostok", 
            "Asia/Ust-Nera", 
            "Asia/Magadan", 
            "Asia/Sakhalin", 
            "Asia/Srednekolymsk", 
            "Asia/Kamchatka", 
            "Asia/Anadyr"
        ], 
        "latlng": [
            60, 
            100
        ], 
        "name": "Russia", 
        "country_code": "RU", 
        "capital": "Moscow"
    }, 
    {
        "timezones": [
            "Africa/Kigali"
        ], 
        "latlng": [
            -2, 
            30
        ], 
        "name": "Rwanda", 
        "country_code": "RW", 
        "capital": "Kigali"
    }, 
    {
        "timezones": [
            "Asia/Riyadh"
        ], 
        "latlng": [
            25, 
            45
        ], 
        "name": "Saudi Arabia", 
        "country_code": "SA", 
        "capital": "Riyadh"
    }, 
    {
        "timezones": [
            "Africa/Khartoum"
        ], 
        "latlng": [
            15, 
            30
        ], 
        "name": "Sudan", 
        "country_code": "SD", 
        "capital": "Khartoum"
    }, 
    {
        "timezones": [
            "Africa/Dakar"
        ], 
        "latlng": [
            14, 
            -14
        ], 
        "name": "Senegal", 
        "country_code": "SN", 
        "capital": "Dakar"
    }, 
    {
        "timezones": [
            "Asia/Singapore"
        ], 
        "latlng": [
            1.36666666, 
            103.8
        ], 
        "name": "Singapore", 
        "country_code": "SG", 
        "capital": "Singapore"
    }, 
    {
        "timezones": [
            "Atlantic/South_Georgia"
        ], 
        "latlng": [
            -54.5, 
            -37
        ], 
        "name": "South Georgia", 
        "country_code": "GS", 
        "capital": "King Edward Point"
    }, 
    {
        "timezones": [
            "Arctic/Longyearbyen"
        ], 
        "latlng": [
            78, 
            20
        ], 
        "name": "Svalbard and Jan Mayen", 
        "country_code": "SJ", 
        "capital": "Longyearbyen"
    }, 
    {
        "timezones": [
            "Pacific/Guadalcanal"
        ], 
        "latlng": [
            -8, 
            159
        ], 
        "name": "Solomon Islands", 
        "country_code": "SB", 
        "capital": "Honiara"
    }, 
    {
        "timezones": [
            "Africa/Freetown"
        ], 
        "latlng": [
            8.5, 
            -11.5
        ], 
        "name": "Sierra Leone", 
        "country_code": "SL", 
        "capital": "Freetown"
    }, 
    {
        "timezones": [
            "America/El_Salvador"
        ], 
        "latlng": [
            13.83333333, 
            -88.91666666
        ], 
        "name": "El Salvador", 
        "country_code": "SV", 
        "capital": "San Salvador"
    }, 
    {
        "timezones": [
            "Europe/San_Marino"
        ], 
        "latlng": [
            43.76666666, 
            12.41666666
        ], 
        "name": "San Marino", 
        "country_code": "SM", 
        "capital": "City of San Marino"
    }, 
    {
        "timezones": [
            "Africa/Mogadishu"
        ], 
        "latlng": [
            10, 
            49
        ], 
        "name": "Somalia", 
        "country_code": "SO", 
        "capital": "Mogadishu"
    }, 
    {
        "timezones": [
            "America/Miquelon"
        ], 
        "latlng": [
            46.83333333, 
            -56.33333333
        ], 
        "name": "Saint Pierre and Miquelon", 
        "country_code": "PM", 
        "capital": "Saint-Pierre"
    }, 
    {
        "timezones": [
            "Europe/Belgrade"
        ], 
        "latlng": [
            44, 
            21
        ], 
        "name": "Serbia", 
        "country_code": "RS", 
        "capital": "Belgrade"
    }, 
    {
        "timezones": [
            "Africa/Juba"
        ], 
        "latlng": [
            7, 
            30
        ], 
        "name": "South Sudan", 
        "country_code": "SS", 
        "capital": "Juba"
    }, 
    {
        "timezones": [
            "Africa/Sao_Tome"
        ], 
        "latlng": [
            1, 
            7
        ], 
        "name": "S\u00e3o Tom\u00e9 and Pr\u00edncipe", 
        "country_code": "ST", 
        "capital": "S\u00e3o Tom\u00e9"
    }, 
    {
        "timezones": [
            "America/Paramaribo"
        ], 
        "latlng": [
            4, 
            -56
        ], 
        "name": "Suriname", 
        "country_code": "SR", 
        "capital": "Paramaribo"
    }, 
    {
        "timezones": [
            "Europe/Bratislava"
        ], 
        "latlng": [
            48.66666666, 
            19.5
        ], 
        "name": "Slovakia", 
        "country_code": "SK", 
        "capital": "Bratislava"
    }, 
    {
        "timezones": [
            "Europe/Ljubljana"
        ], 
        "latlng": [
            46.11666666, 
            14.81666666
        ], 
        "name": "Slovenia", 
        "country_code": "SI", 
        "capital": "Ljubljana"
    }, 
    {
        "timezones": [
            "Europe/Stockholm"
        ], 
        "latlng": [
            62, 
            15
        ], 
        "name": "Sweden", 
        "country_code": "SE", 
        "capital": "Stockholm"
    }, 
    {
        "timezones": [
            "Africa/Mbabane"
        ], 
        "latlng": [
            -26.5, 
            31.5
        ], 
        "name": "Swaziland", 
        "country_code": "SZ", 
        "capital": "Lobamba"
    }, 
    {
        "timezones": [
            "America/Lower_Princes"
        ], 
        "latlng": [
            18.033333, 
            -63.05
        ], 
        "name": "Sint Maarten", 
        "country_code": "SX", 
        "capital": "Philipsburg"
    }, 
    {
        "timezones": [
            "Indian/Mahe"
        ], 
        "latlng": [
            -4.58333333, 
            55.66666666
        ], 
        "name": "Seychelles", 
        "country_code": "SC", 
        "capital": "Victoria"
    }, 
    {
        "timezones": [
            "Asia/Damascus"
        ], 
        "latlng": [
            35, 
            38
        ], 
        "name": "Syria", 
        "country_code": "SY", 
        "capital": "Damascus"
    }, 
    {
        "timezones": [
            "America/Grand_Turk"
        ], 
        "latlng": [
            21.75, 
            -71.58333333
        ], 
        "name": "Turks and Caicos Islands", 
        "country_code": "TC", 
        "capital": "Cockburn Town"
    }, 
    {
        "timezones": [
            "Africa/Ndjamena"
        ], 
        "latlng": [
            15, 
            19
        ], 
        "name": "Chad", 
        "country_code": "TD", 
        "capital": "N'Djamena"
    }, 
    {
        "timezones": [
            "Africa/Lome"
        ], 
        "latlng": [
            8, 
            1.16666666
        ], 
        "name": "Togo", 
        "country_code": "TG", 
        "capital": "Lom\u00e9"
    }, 
    {
        "timezones": [
            "Asia/Bangkok"
        ], 
        "latlng": [
            15, 
            100
        ], 
        "name": "Thailand", 
        "country_code": "TH", 
        "capital": "Bangkok"
    }, 
    {
        "timezones": [
            "Asia/Dushanbe"
        ], 
        "latlng": [
            39, 
            71
        ], 
        "name": "Tajikistan", 
        "country_code": "TJ", 
        "capital": "Dushanbe"
    }, 
    {
        "timezones": [
            "Pacific/Fakaofo"
        ], 
        "latlng": [
            -9, 
            -172
        ], 
        "name": "Tokelau", 
        "country_code": "TK", 
        "capital": "Fakaofo"
    }, 
    {
        "timezones": [
            "Asia/Ashgabat"
        ], 
        "latlng": [
            40, 
            60
        ], 
        "name": "Turkmenistan", 
        "country_code": "TM", 
        "capital": "Ashgabat"
    }, 
    {
        "timezones": [
            "Asia/Dili"
        ], 
        "latlng": [
            -8.83333333, 
            125.91666666
        ], 
        "name": "Timor-Leste", 
        "country_code": "TL", 
        "capital": "Dili"
    }, 
    {
        "timezones": [
            "Pacific/Tongatapu"
        ], 
        "latlng": [
            -20, 
            -175
        ], 
        "name": "Tonga", 
        "country_code": "TO", 
        "capital": "Nuku'alofa"
    }, 
    {
        "timezones": [
            "America/Port_of_Spain"
        ], 
        "latlng": [
            11, 
            -61
        ], 
        "name": "Trinidad and Tobago", 
        "country_code": "TT", 
        "capital": "Port of Spain"
    }, 
    {
        "timezones": [
            "Africa/Tunis"
        ], 
        "latlng": [
            34, 
            9
        ], 
        "name": "Tunisia", 
        "country_code": "TN", 
        "capital": "Tunis"
    }, 
    {
        "timezones": [
            "Europe/Istanbul"
        ], 
        "latlng": [
            39, 
            35
        ], 
        "name": "Turkey", 
        "country_code": "TR", 
        "capital": "Ankara"
    }, 
    {
        "timezones": [
            "Pacific/Funafuti"
        ], 
        "latlng": [
            -8, 
            178
        ], 
        "name": "Tuvalu", 
        "country_code": "TV", 
        "capital": "Funafuti"
    }, 
    {
        "timezones": [
            "Asia/Taipei"
        ], 
        "latlng": [
            23.5, 
            121
        ], 
        "name": "Taiwan", 
        "country_code": "TW", 
        "capital": "Taipei"
    }, 
    {
        "timezones": [
            "Africa/Dar_es_Salaam"
        ], 
        "latlng": [
            -6, 
            35
        ], 
        "name": "Tanzania", 
        "country_code": "TZ", 
        "capital": "Dodoma"
    }, 
    {
        "timezones": [
            "Africa/Kampala"
        ], 
        "latlng": [
            1, 
            32
        ], 
        "name": "Uganda", 
        "country_code": "UG", 
        "capital": "Kampala"
    }, 
    {
        "timezones": [
            "Europe/Kiev", 
            "Europe/Uzhgorod", 
            "Europe/Zaporozhye"
        ], 
        "latlng": [
            49, 
            32
        ], 
        "name": "Ukraine", 
        "country_code": "UA", 
        "capital": "Kiev"
    }, 
    {
        "timezones": [
            "Pacific/Johnston", 
            "Pacific/Midway", 
            "Pacific/Wake"
        ], 
        "latlng": [
            19.2911437, 
            166.618332
        ], 
        "name": "United States Minor Outlying Islands", 
        "country_code": "UM", 
        "capital": null
    }, 
    {
        "timezones": [
            "America/Montevideo"
        ], 
        "latlng": [
            -33, 
            -56
        ], 
        "name": "Uruguay", 
        "country_code": "UY", 
        "capital": "Montevideo"
    }, 
    {
        "timezones": [
            "America/New_York", 
            "America/Detroit", 
            "America/Kentucky/Louisville", 
            "America/Kentucky/Monticello", 
            "America/Indiana/Indianapolis", 
            "America/Indiana/Vincennes", 
            "America/Indiana/Winamac", 
            "America/Indiana/Marengo", 
            "America/Indiana/Petersburg", 
            "America/Indiana/Vevay", 
            "America/Chicago", 
            "America/Indiana/Tell_City", 
            "America/Indiana/Knox", 
            "America/Menominee", 
            "America/North_Dakota/Center", 
            "America/North_Dakota/New_Salem", 
            "America/North_Dakota/Beulah", 
            "America/Denver", 
            "America/Boise", 
            "America/Phoenix", 
            "America/Los_Angeles", 
            "America/Anchorage", 
            "America/Juneau", 
            "America/Sitka", 
            "America/Metlakatla", 
            "America/Yakutat", 
            "America/Nome", 
            "America/Adak", 
            "Pacific/Honolulu"
        ], 
        "latlng": [
            38, 
            -97
        ], 
        "name": "United States", 
        "country_code": "US", 
        "capital": "Washington D.C."
    }, 
    {
        "timezones": [
            "Asia/Samarkand", 
            "Asia/Tashkent"
        ], 
        "latlng": [
            41, 
            64
        ], 
        "name": "Uzbekistan", 
        "country_code": "UZ", 
        "capital": "Tashkent"
    }, 
    {
        "timezones": [
            "Europe/Vatican"
        ], 
        "latlng": [
            41.9, 
            12.45
        ], 
        "name": "Vatican City", 
        "country_code": "VA", 
        "capital": "Vatican City"
    }, 
    {
        "timezones": [
            "America/St_Vincent"
        ], 
        "latlng": [
            13.25, 
            -61.2
        ], 
        "name": "Saint Vincent and the Grenadines", 
        "country_code": "VC", 
        "capital": "Kingstown"
    }, 
    {
        "timezones": [
            "America/Caracas"
        ], 
        "latlng": [
            8, 
            -66
        ], 
        "name": "Venezuela", 
        "country_code": "VE", 
        "capital": "Caracas"
    }, 
    {
        "timezones": [
            "America/Tortola"
        ], 
        "latlng": [
            18.431383, 
            -64.62305
        ], 
        "name": "British Virgin Islands", 
        "country_code": "VG", 
        "capital": "Road Town"
    }, 
    {
        "timezones": [
            "America/St_Thomas"
        ], 
        "latlng": [
            18.35, 
            -64.933333
        ], 
        "name": "United States Virgin Islands", 
        "country_code": "VI", 
        "capital": "Charlotte Amalie"
    }, 
    {
        "timezones": [
            "Asia/Ho_Chi_Minh"
        ], 
        "latlng": [
            16.16666666, 
            107.83333333
        ], 
        "name": "Vietnam", 
        "country_code": "VN", 
        "capital": "Hanoi"
    }, 
    {
        "timezones": [
            "Pacific/Efate"
        ], 
        "latlng": [
            -16, 
            167
        ], 
        "name": "Vanuatu", 
        "country_code": "VU", 
        "capital": "Port Vila"
    }, 
    {
        "timezones": [
            "Pacific/Wallis"
        ], 
        "latlng": [
            -13.3, 
            -176.2
        ], 
        "name": "Wallis and Futuna", 
        "country_code": "WF", 
        "capital": "Mata-Utu"
    }, 
    {
        "timezones": [
            "Pacific/Apia"
        ], 
        "latlng": [
            -13.58333333, 
            -172.33333333
        ], 
        "name": "Samoa", 
        "country_code": "WS", 
        "capital": "Apia"
    }, 
    {
        "timezones": [
            "Asia/Aden"
        ], 
        "latlng": [
            15, 
            48
        ], 
        "name": "Yemen", 
        "country_code": "YE", 
        "capital": "Sana'a"
    }, 
    {
        "timezones": [
            "Africa/Johannesburg"
        ], 
        "latlng": [
            -29, 
            24
        ], 
        "name": "South Africa", 
        "country_code": "ZA", 
        "capital": "Pretoria"
    }, 
    {
        "timezones": [
            "Africa/Lusaka"
        ], 
        "latlng": [
            -15, 
            30
        ], 
        "name": "Zambia", 
        "country_code": "ZM", 
        "capital": "Lusaka"
    }, 
    {
        "timezones": [
            "Africa/Harare"
        ], 
        "latlng": [
            -20, 
            30
        ], 
        "name": "Zimbabwe", 
        "country_code": "ZW", 
        "capital": "Harare"
    }
];
  const mapped = d.map(
    b => [b.country_code, b.latlng]).reduce((acc, c) => {
      return Object.assign(acc, {[c[0]]: c[1]})
  }, {});
  // log(mapped);
  return mapped;
}

const codes = mapcodes();

async function loadmirrors(){
const response = await fetch('https://cors-anywhere.herokuapp.com/https://www.archlinux.org/mirrors/status/json/');
const {urls, last_check} = await response.json();
  const dot = {https: 0, http: 0, rsync: 0, country: ''};
  const st = urls.reduce((acc, cur) => {
    if(!acc.hasOwnProperty(cur.country_code))
      acc[cur.country_code] = Object.assign({}, dot, {country: cur.country, info: codes[cur.country_code]});
    
    for(let t of ['https', 'http', 'rsync'])
      acc[cur.country_code][t] += (cur.protocol == t) ? 1 : 0;
    
    return acc;
  }, {});
  
  
  const dots = Object.entries(st).map(
    kv => {
      if(!codes.hasOwnProperty(kv[0]))
        {
          console.log('did not find ' + kv[0]);
          return null;
        }
      
      const url = `https://www.archlinux.org/mirrorlist/?country=${kv[0]}&protocol=http&protocol=https&ip_version=4`;
      
      const title = [
        `<a href="${url}" target="_blank">${kv[1].country}</a><br />`,
        `http: ${kv[1].http}`,
        `https: ${kv[1].https}`,
        `rsync: ${kv[1].rsync}`
      ].join(" ");
      
      
      return {
        title,
        url,
        latitude: codes[kv[0]][0],
        longitude: codes[kv[0]][1],
      };
  }).filter(e => e!=null);
  // log(points);
  log(`Last Check: ${last_check}`);
  return dots;
}

if(true){
var map = L.map('mapid').setView([51.505, -0.09], 13);

const mymap = map;

  // create the tile layer with correct attribution
  var osmUrl = 'https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png';
  var osmAttrib = 'Map data &copy; OpenStreetMap contributors';
  var osm = new L.TileLayer(osmUrl, {minZoom: 2, maxZoom: 17, attribution: osmAttrib});

  // start the map
  map.setView(new L.LatLng(18.438889, 1.408333), 2);
  map.addLayer(osm);
  
  map1();
}

async function map1(){
    var RootIcon = L.Icon.extend({
    options: {
      shadowUrl: '',
      iconSize:     [20, 34],
      shadowSize:   [20, 34],
      iconAnchor:   [10, 34],
      shadowAnchor: [20, 34],
      popupAnchor:  [0, -34]
    }
  });
  
  // var markers = new L.MarkerClusterGroup({showCoverageOnHover: false, zoomToBoundsOnClick: true, spiderfyOnMaxZoom: true, maxClusterRadius: 100});  
  var markers = new L.MarkerClusterGroup();
  
  
// debugger;
  let d0 = await loadmirrors();
  
debugger;
  for(let pz of d0){
              var plotll = new L.LatLng(pz.latitude, pz.longitude, true);
        // var plotmark = new L.Marker(plotll, {icon: new RootIcon({iconUrl: 'static/images/mapicons/' + pz[2] + '_Marker.png'})});
    
    // 2 works
    // let plotmark = L.marker(plotll, {title: pz.title})
    //         markers.addLayer(plotmark);
    
    L.marker([pz.latitude, pz.longitude]).addTo(map)
    .bindPopup(pz.title)
    .openPopup();
  }
  // 1 works
      // map.addLayer(markers);
}

if(false){
  var addressPoints = [
[-37.8210922667, 175.2209316333, "2"],
[-37.8210819833, 175.2213903167, "3"],
[-37.8210881833, 175.2215004833, "3A"]];
  
  		var tiles = L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {
				maxZoom: 18,
				attribution: '&copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors, Points &copy 2012 LINZ'
			}),
			latlng = L.latLng(-37.82, 175.24);

		var map = L.map('map', {center: latlng, zoom: 13, layers: [tiles]});

		var markers = L.markerClusterGroup();
		
		for (var i = 0; i < addressPoints.length; i++) {
			var a = addressPoints[i];
			var title = a[2];
			var marker = L.marker(new L.LatLng(a[0], a[1]), { title: title });
			marker.bindPopup(title);
			markers.addLayer(marker);
		}

		map.addLayer(markers);
}

// var marker = L.marker([51.5, -0.09]).addTo(mymap);
            
          
!
999px
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.

Console