{"id":4409,"date":"2026-09-10T14:00:54","date_gmt":"2026-09-10T09:00:54","guid":{"rendered":"https:\/\/mkvk.furush.site\/?page_id=4409"},"modified":"2026-09-15T12:58:23","modified_gmt":"2026-09-15T07:58:23","slug":"interactive-map-of-central-asia","status":"publish","type":"page","link":"https:\/\/secretariat-mkvk.org\/?page_id=4409&lang=en","title":{"rendered":"INTERACTIVE MAP OF CENTRAL ASIA"},"content":{"rendered":"\n<meta charset=\"UTF-8\">\n\n<title>INTERACTIVE MAP OF CENTRAL ASIA<\/title>\n\n<meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n\n<link rel=\"stylesheet\" href=\"https:\/\/unpkg.com\/leaflet@1.9.4\/dist\/leaflet.css\">\n\n<script src=\"https:\/\/unpkg.com\/leaflet@1.9.4\/dist\/leaflet.js\">\n<\/script>\n\n<style>\n\nbody {\n    margin: 0;\n    font-family: Arial, Helvetica, sans-serif;\n    background: #f4f4f4;\n}\n\nh2 {\n    margin: 15px 0;\n}\n\n#map {\n    width: 100%;\n    height: 650px;\n}\n\n\n\ntable {\n    width: 100%;\n    border-collapse: collapse;\n    background: white;\n}\n\nth,\ntd {\n    border: 1px solid #ccc;\n    padding: 10px;\n    text-align: left;\n    vertical-align: top;\n}\n\nth {\n    background: #1976d2;\n    color: white;\n}\n\n#status {\n    width: 95%;\n    margin: 10px auto;\n    padding: 10px;\n    box-sizing: border-box;\n    border-radius: 5px;\n    background: #fff3cd;\n    color: #856404;\n    border: 1px solid #ffeeba;\n    display: none;\n}\n\n#status.error {\n    background: #f8d7da;\n    color: #721c24;\n    border-color: #f5c6cb;\n}\n\n#status.success {\n    background: #d4edda;\n    color: #155724;\n    border-color: #c3e6cb;\n}\n\n.loading {\n    display: inline-block;\n    margin-right: 8px;\n}\n\n<\/style>\n\n<h2>INTERACTIVE MAP OF CENTRAL ASIA<\/h2>\n\n<div id=\"status\">\n    <span class=\"loading\">\u23f3<\/span>\n    <span id=\"statusText\">Loading map&#8230;<\/span>\n<\/div>\n\n<div id=\"map\"><\/div>\n\n<div class=\"info\">\n\n<table>\n\n<tbody>\n\n<tr>\n<th>Parameter<\/th>\n<th>Information<\/th>\n<\/tr>\n\n<tr>\n<td>Country<\/td>\n<td id=\"country\">Select a country<\/td>\n<\/tr>\n\n<tr>\n<td>Capital<\/td>\n<td id=\"capital\">&#8211;<\/td>\n<\/tr>\n\n<tr>\n<td>Population<\/td>\n<td id=\"population\">&#8211;<\/td>\n<\/tr>\n\n<tr>\n<td>Area<\/td>\n<td id=\"area\">&#8211;<\/td>\n<\/tr>\n\n<tr>\n<td>Currency<\/td>\n<td id=\"currency\">&#8211;<\/td>\n<\/tr>\n\n<tr>\n<td>Official language<\/td>\n<td id=\"language\">&#8211;<\/td>\n<\/tr>\n\n<tr>\n<td>\nTotal area of the Syr Darya River basin\nwithin the country\n<\/td>\n<td id=\"ploshad\">&#8211;<\/td>\n<\/tr>\n\n<tr>\n<td>\nSyr Darya River runoff\ngenerated within the country\n<\/td>\n<td id=\"stok\">&#8211;<\/td>\n<\/tr>\n\n<tr>\n<td>\nTotal area of the Amu Darya River basin\nwithin the country\n<\/td>\n<td id=\"ploshad_amu\">&#8211;<\/td>\n<\/tr>\n\n<tr>\n<td>\nAmu Darya River runoff\ngenerated within the country\n<\/td>\n<td id=\"stok_amu\">&#8211;<\/td>\n<\/tr>\n\n<tr>\n<td>Main rivers<\/td>\n<td id=\"rivers\">&#8211;<\/td>\n<\/tr>\n\n<tr>\n<td>Main lakes<\/td>\n<td id=\"lakes\">&#8211;<\/td>\n<\/tr>\n\n<tr>\n<td>Main reservoirs<\/td>\n<td id=\"reservoirs\">&#8211;<\/td>\n<\/tr>\n\n<tr>\n<td>Volume of the largest reservoir<\/td>\n<td id=\"reservoirs_volume\">&#8211;<\/td>\n<\/tr>\n\n<tr>\n<td>Surface water withdrawal limit<\/td>\n<td id=\"limit\">&#8211;<\/td>\n<\/tr>\n\n<tr>\n<td>\nSurface water withdrawal limit\nof the Syr Darya River basin\n<\/td>\n<td id=\"limit_syr\">&#8211;<\/td>\n<\/tr>\n\n<tr>\n<td>\nSurface water withdrawal limit\nof the Amu Darya River basin\n<\/td>\n<td id=\"limit_amu\">&#8211;<\/td>\n<\/tr>\n\n<\/tbody>\n\n<\/table>\n\n<\/div>\n\n\n<script>\n\n\/* =========================================================\n   1. MAP INITIALIZATION\n   ========================================================= *\/\n\nconst map = L.map('map').setView([43.5, 67], 4);\n\nL.tileLayer(\n    'https:\/\/{s}.tile.openstreetmap.org\/{z}\/{x}\/{y}.png',\n    {\n        attribution: '\u00a9 OpenStreetMap contributors'\n    }\n).addTo(map);\n\n\n\/* =========================================================\n   2. COUNTRY DATA\n   ========================================================= *\/\n\nconst countries = {\n\n    \"Kazakhstan\": {\n\n        name: \"Kazakhstan\",\n\n        capital: \"Astana\",\n\n        population: \"21 million\",\n\n        area: \"2,724,900 km\u00b2\",\n\n        currency: \"Kazakhstani tenge\",\n\n        language: \"Kazakh\",\n\n        ploshad: \"345,000 km\u00b2 (64.9% of the total basin area)\",\n\n        stok: \"4.50 km\u00b3 (12.12% of the total river runoff)\",\n\n        ploshad_amu: \"\u2014\",\n\n        stok_amu: \"\u2014\",\n\n        rivers:\n            \"Irtysh, Ural, Syr Darya, Ili, Ishim, Tobol\",\n\n        lakes:\n            \"Balkhash, Alakol, Zaysan, Tengiz\",\n\n        reservoirs:\n            \"Kapchagay, Bukhtarma, Shardara\",\n\n        reservoirs_volume:\n            \"Bukhtarma \u2014 about 53 km\u00b3\",\n\n        limit:\n            \"10.01 km\u00b3\",\n\n        limit_syr:\n            \"10.01 km\u00b3\",\n\n        limit_amu:\n            \"\u2014\"\n    },\n\n\n    \"Uzbekistan\": {\n\n        name: \"Uzbekistan\",\n\n        capital: \"Tashkent\",\n\n        population: \"37.7 million\",\n\n        area: \"447,400 km\u00b2\",\n\n        currency: \"Uzbekistani sum\",\n\n        language: \"Uzbek\",\n\n        ploshad: \"60,400 km\u00b2 (11.4% of the total basin area)\",\n\n        stok: \"4.14 km\u00b3 (11.15% of the total river runoff)\",\n\n        ploshad_amu: \"364,630 km\u00b2 (35.6% of the total basin area)\",\n\n        stok_amu: \"4.7 km\u00b3 (5.99% of the total river runoff)\",\n\n        rivers:\n            \"Syr Darya, Amu Darya, Zarafshan, Chirchiq\",\n\n        lakes:\n            \"Aydarkul, Sarykamysh\",\n\n        reservoirs:\n            \"Charvak, Tuyabuguz, Kattakurgan\",\n\n        reservoirs_volume:\n            \"Charvak \u2014 about 2 km\u00b3\",\n\n        limit:\n            \"40.08 km\u00b3\",\n\n        limit_syr:\n            \"10.48 km\u00b3\",\n\n        limit_amu:\n            \"29.60 km\u00b3\"\n    },\n\n\n    \"Turkmenistan\": {\n\n        name: \"Turkmenistan\",\n\n        capital: \"Ashgabat\",\n\n        population: \"7.7 million\",\n\n        area: \"491,200 km\u00b2\",\n\n        currency: \"Turkmen manat\",\n\n        language: \"Turkmen\",\n\n        ploshad: \"\u2014\",\n\n        stok: \"\u2014\",\n\n        ploshad_amu: \"359,730 km\u00b2 (35.1% of the total basin area)\",\n\n        stok_amu: \"2.78 km\u00b3 (3.54% of the total river runoff)\",\n\n        rivers:\n            \"Amu Darya, Murgab, Tejen, Atrek\",\n\n        lakes:\n            \"Sarykamysh, Zeyid\",\n\n        reservoirs:\n            \"Zeyid, Hauzkhan\",\n\n        reservoirs_volume:\n            \"Zeyid \u2014 2.2 km\u00b3\",\n\n        limit:\n            \"22.0 km\u00b3\",\n\n        limit_syr:\n            \"\u2014\",\n\n        limit_amu:\n            \"22.0 km\u00b3\"\n    },\n\n\n    \"Kyrgyzstan\": {\n\n        name: \"Kyrgyzstan\",\n\n        capital: \"Bishkek\",\n\n        population: \"7.2 million\",\n\n        area: \"199,951 km\u00b2\",\n\n        currency: \"Kyrgyzstani som\",\n\n        language: \"Kyrgyz\",\n\n        ploshad: \"110,570 km\u00b2 (20.8% of the total basin area)\",\n\n        stok: \"27.40 km\u00b3 (73.77% of the total river runoff)\",\n\n        ploshad_amu: \"7,800 km\u00b2 (0.8% of the total basin area)\",\n\n        stok_amu: \"1.90 km\u00b3 (2.42% of the total river runoff)\",\n\n        rivers:\n            \"Naryn, Chu, Talas, Sary-Jaz\",\n\n        lakes:\n            \"Issyk-Kul, Son-Kul, Chatyr-Kul\",\n\n        reservoirs:\n            \"Toktogul, Kirov, Orto-Tokoy\",\n\n        reservoirs_volume:\n            \"Toktogul \u2014 about 19.5 km\u00b3\",\n\n        limit:\n            \"0.79 km\u00b3\",\n\n        limit_syr:\n            \"0.39 km\u00b3\",\n\n        limit_amu:\n            \"0.40 km\u00b3\"\n    },\n\n\n    \"Tajikistan\": {\n\n        name: \"Tajikistan\",\n\n        capital: \"Dushanbe\",\n\n        population: \"10.9 million\",\n\n        area: \"143,100 km\u00b2\",\n\n        currency: \"Tajikistani somoni\",\n\n        language: \"Tajik\",\n\n        ploshad: \"15,680 km\u00b2 (2.9% of the total basin area)\",\n\n        stok: \"1.10 km\u00b3 (2.96% of the total river runoff)\",\n\n        ploshad_amu: \"125,450 km\u00b2 (12.3% of the total basin area)\",\n\n        stok_amu: \"62.90 km\u00b3 (80.17% of the total river runoff)\",\n\n        rivers:\n            \"Panj, Vakhsh, Zarafshan, Kofarnihon\",\n\n        lakes:\n            \"Karakul, Sarez, Iskanderkul\",\n\n        reservoirs:\n            \"Nurek, Qayrakkum, Baipaza\",\n\n        reservoirs_volume:\n            \"Nurek \u2014 about 10.5 km\u00b3\",\n\n        limit:\n            \"11.31 km\u00b3\",\n\n        limit_syr:\n            \"1.81 km\u00b3\",\n\n        limit_amu:\n            \"9.50 km\u00b3\"\n    }\n\n};\n\n\n\/* =========================================================\n   3. UPDATE TABLE\n   ========================================================= *\/\n\nfunction updateTable(name) {\n\n    const c = countries[name];\n\n    if (!c) {\n        console.error(\n            \"Country data not found:\",\n            name\n        );\n        return;\n    }\n\n    document.getElementById(\"country\").textContent =\n        c.name || name;\n\n    document.getElementById(\"capital\").textContent =\n        c.capital || \"-\";\n\n    document.getElementById(\"population\").textContent =\n        c.population || \"-\";\n\n    document.getElementById(\"area\").textContent =\n        c.area || \"-\";\n\n    document.getElementById(\"currency\").textContent =\n        c.currency || \"-\";\n\n    document.getElementById(\"language\").textContent =\n        c.language || \"-\";\n\n    document.getElementById(\"ploshad\").textContent =\n        c.ploshad || \"-\";\n\n    document.getElementById(\"stok\").textContent =\n        c.stok || \"-\";\n\n    document.getElementById(\"ploshad_amu\").textContent =\n        c.ploshad_amu || \"-\";\n\n    document.getElementById(\"stok_amu\").textContent =\n        c.stok_amu || \"-\";\n\n    document.getElementById(\"rivers\").textContent =\n        c.rivers || \"-\";\n\n    document.getElementById(\"lakes\").textContent =\n        c.lakes || \"-\";\n\n    document.getElementById(\"reservoirs\").textContent =\n        c.reservoirs || \"-\";\n\n    document.getElementById(\"reservoirs_volume\").textContent =\n        c.reservoirs_volume || \"-\";\n\n    document.getElementById(\"limit\").textContent =\n        c.limit || \"-\";\n\n    document.getElementById(\"limit_syr\").textContent =\n        c.limit_syr || \"-\";\n\n    document.getElementById(\"limit_amu\").textContent =\n        c.limit_amu || \"-\";\n}\n\n\n\/* =========================================================\n   4. STATUS MESSAGES\n   ========================================================= *\/\n\nfunction showStatus(message, type = \"\") {\n\n    const status = document.getElementById(\"status\");\n    const statusText = document.getElementById(\"statusText\");\n\n    statusText.textContent = message;\n\n    status.className = \"\";\n\n    if (type) {\n        status.classList.add(type);\n    }\n\n    status.style.display = \"block\";\n}\n\n\nfunction hideStatus() {\n\n    document.getElementById(\"status\").style.display =\n        \"none\";\n}\n\n\n\/* =========================================================\n   5. GEOJSON VALIDATION\n   ========================================================= *\/\n\nfunction validateGeoJSON(data) {\n\n    if (!data) {\n\n        throw new Error(\n            \"Empty response received\"\n        );\n    }\n\n    if (data.type !== \"FeatureCollection\") {\n\n        throw new Error(\n            \"The file is not a GeoJSON FeatureCollection\"\n        );\n    }\n\n    if (!Array.isArray(data.features)) {\n\n        throw new Error(\n            \"The GeoJSON file does not contain a features array\"\n        );\n    }\n\n    return true;\n}\n\n\n\/* =========================================================\n   6. GEOJSON LOADING WITH CORS\n   ========================================================= *\/\n\n\/*\n   Source options:\n\n   1. .\/countries.geojson\n      Local file next to index.html.\n\n   2. External DataHub URL.\n\n   3. AllOrigins CORS proxy.\n\n   The application automatically tries the sources\n   sequentially.\n*\/\n\nconst geoJSONSources = [\n\n    {\n        name: \"local countries.geojson\",\n\n        url: \"https:\/\/secretariat-mkvk.org\/countries.geojson\"\n    },\n\n    {\n        name: \"DataHub\",\n\n        url:\n        \"https:\/\/r2.datahub.io\/clvyjaryy0000la0cxieg4o8o\/main\/raw\/data\/countries.geojson\"\n    },\n\n    {\n        name: \"AllOrigins CORS proxy\",\n\n        url:\n        \"https:\/\/api.allorigins.win\/get?url=\" +\n        encodeURIComponent(\n            \"https:\/\/secretariat-mkvk.org\/countries.geojson\"\n        )\n    }\n\n];\n\n\n\/* =========================================================\n   7. REQUEST WITH TIMEOUT\n   ========================================================= *\/\n\nasync function fetchWithTimeout(url, timeout = 15000) {\n\n    const controller = new AbortController();\n\n    const timer = setTimeout(\n        () => controller.abort(),\n        timeout\n    );\n\n    try {\n\n        const response = await fetch(\n            url,\n            {\n                method: \"GET\",\n\n                mode: \"cors\",\n\n                cache: \"no-cache\",\n\n                signal: controller.signal,\n\n                headers: {\n                    \"Accept\":\n                        \"application\/geo+json, application\/json\"\n                }\n            }\n        );\n\n        if (!response.ok) {\n\n            throw new Error(\n                \"HTTP error \" +\n                response.status +\n                \" \" +\n                response.statusText\n            );\n        }\n\n        return await response.json();\n\n    } finally {\n\n        clearTimeout(timer);\n    }\n}\n\n\n\/* =========================================================\n   8. AUTOMATIC LOADING\n   ========================================================= *\/\n\nasync function loadGeoJSON() {\n\n    showStatus(\n        \"Loading geographic data...\"\n    );\n\n    let lastError = null;\n\n    for (const source of geoJSONSources) {\n\n        try {\n\n            console.log(\n                \"Loading attempt:\",\n                source.name\n            );\n\n            showStatus(\n                \"Loading: \" +\n                source.name +\n                \"...\"\n            );\n\n            const data =\n                await fetchWithTimeout(\n                    source.url\n                );\n\n            validateGeoJSON(data);\n\n            console.log(\n                \"GeoJSON successfully loaded:\",\n                source.name\n            );\n\n            showStatus(\n                \"GeoJSON successfully loaded: \" +\n                source.name,\n                \"success\"\n            );\n\n            return data;\n\n        }\n\n        catch (error) {\n\n            lastError = error;\n\n            console.warn(\n                \"Failed to load:\",\n                source.name,\n                error\n            );\n        }\n    }\n\n    throw new Error(\n        \"Unable to load GeoJSON. \" +\n        \"Please check the countries.geojson file, \" +\n        \"internet connection and CORS settings. \" +\n        \"Last error: \" +\n        (lastError\n            ? lastError.message\n            : \"unknown error\")\n    );\n}\n\n\n\/* =========================================================\n   9. DISPLAY GEOJSON ON THE MAP\n   ========================================================= *\/\n\nfunction displayGeoJSON(data) {\n\n    const filtered = {\n\n        type: \"FeatureCollection\",\n\n        features:\n            data.features.filter(\n                feature => {\n\n                    const name =\n                        feature.properties &&\n                        feature.properties.name;\n\n                    return Boolean(\n                        countries[name]\n                    );\n                }\n            )\n    };\n\n\n    if (filtered.features.length === 0) {\n\n        throw new Error(\n            \"The GeoJSON does not contain the countries \" +\n            \"Kazakhstan, Kyrgyzstan, Tajikistan, \" +\n            \"Turkmenistan or Uzbekistan.\"\n        );\n    }\n\n\n    let selectedLayer = null;\n\n\n    const geoLayer = L.geoJSON(\n        filtered,\n        {\n\n            style: function () {\n\n                return {\n\n                    color: \"#333\",\n\n                    weight: 2,\n\n                    fillColor: \"#4CAF50\",\n\n                    fillOpacity: 0.5\n                };\n            },\n\n\n            onEachFeature:\n            function (feature, layer) {\n\n                const countryName =\n                    feature.properties.name;\n\n\n                layer.bindTooltip(\n                    countries[countryName]\n                        ? countries[countryName].name\n                        : countryName\n                );\n\n\n                layer.on({\n\n                    mouseover:\n                    function (e) {\n\n                        e.target.setStyle({\n\n                            fillOpacity: 0.8\n                        });\n                    },\n\n\n                    mouseout:\n                    function (e) {\n\n                        if (\n                            selectedLayer !==\n                            layer\n                        ) {\n\n                            e.target.setStyle({\n\n                                fillOpacity: 0.5,\n\n                                fillColor:\n                                    \"#4CAF50\"\n                            });\n                        }\n                    },\n\n\n                    click:\n                    function (e) {\n\n                        if (\n                            selectedLayer\n                        ) {\n\n                            selectedLayer.setStyle({\n\n                                fillColor:\n                                    \"#4CAF50\",\n\n                                fillOpacity:\n                                    0.5\n                            });\n                        }\n\n\n                        selectedLayer =\n                            layer;\n\n\n                        layer.setStyle({\n\n                            fillColor:\n                                \"#ff9800\",\n\n                            fillOpacity:\n                                0.8\n                        });\n\n\n                        updateTable(\n                            countryName\n                        );\n\n\n                        map.fitBounds(\n                            layer.getBounds(),\n                            {\n                                padding: [20, 20]\n                            }\n                        );\n                    }\n\n                });\n\n            }\n\n        }\n    ).addTo(map);\n\n\n    \/* Automatically display all of Central Asia *\/\n\n    const bounds =\n        geoLayer.getBounds();\n\n    if (bounds.isValid()) {\n\n        map.fitBounds(\n            bounds,\n            {\n                padding: [20, 20]\n            }\n        );\n    }\n\n\n    return geoLayer;\n}\n\n\n\/* =========================================================\n   10. APPLICATION START\n   ========================================================= *\/\n\nasync function initMap() {\n\n    try {\n\n        const data =\n            await loadGeoJSON();\n\n        displayGeoJSON(data);\n\n        showStatus(\n            \"Map of Central Asia is ready. \" +\n            \"Select a country.\",\n            \"success\"\n        );\n\n\n        setTimeout(\n            hideStatus,\n            3000\n        );\n\n    }\n\n    catch (error) {\n\n        console.error(\n            \"Critical error:\",\n            error\n        );\n\n\n        showStatus(\n            \"Map loading error: \" +\n            error.message,\n            \"error\"\n        );\n\n\n        \/*\n           Additional message\n           directly on the map.\n        *\/\n\n        L.control\n            .attribution({\n                prefix: false\n            })\n            .addAttribution(\n                \"GeoJSON loading error\"\n            );\n    }\n}\n\n\n\/* =========================================================\n   11. START\n   ========================================================= *\/\n\ninitMap();\n\n<\/script>\n","protected":false},"excerpt":{"rendered":"<p>INTERACTIVE MAP OF CENTRAL ASIA INTERACTIVE MAP OF CENTRAL ASIA \u23f3 Loading map&#8230; Parameter Information Country Select a country Capital &#8211; Population &#8211; Area &#8211; Currency &#8211; Official language &#8211; Total area of the Syr Darya River basin within the country &#8211; Syr Darya River runoff generated within the country [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-4409","page","type-page","status-publish","hentry"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/secretariat-mkvk.org\/index.php?rest_route=\/wp\/v2\/pages\/4409","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/secretariat-mkvk.org\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/secretariat-mkvk.org\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/secretariat-mkvk.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/secretariat-mkvk.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4409"}],"version-history":[{"count":3,"href":"https:\/\/secretariat-mkvk.org\/index.php?rest_route=\/wp\/v2\/pages\/4409\/revisions"}],"predecessor-version":[{"id":4633,"href":"https:\/\/secretariat-mkvk.org\/index.php?rest_route=\/wp\/v2\/pages\/4409\/revisions\/4633"}],"wp:attachment":[{"href":"https:\/\/secretariat-mkvk.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4409"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}