Kyrgyzstan Stargazing: Alpine Lakes, High Passes & Nomadic Night Camps

Stargazing in Kyrgyzstan is shaped by high inland basins, sparse settlement outside the main valleys and overnight camps reached across seasonal mountain roads. The shared scoring window is August–September 2026, when Song-Köl, Tulpar-Köl, Tash Rabat and the main highland approaches usually retain practical summer access while astronomical darkness lengthens through September. The score covers eight planning regions across Naryn, Issyk-Kul, Osh and Jalal-Abad; it does not describe every part of the country.

Country Stargazing Score
81/100
Selected eight-location portfolio
Highest-Rated Location
Song-Köl North Shore · 86/100
Open plateau horizon with seasonal camp access
Target Observing Window
August–September 2026
61-night calculation window
Locations Assessed
8
Four regions and multiple access types
Strongest Sky Type
High inland plateaus
Broad horizons away from major city domes
Main Planning Risk
Road and permit variability
Passes, checkpoints and protected-area rules

Kyrgyzstan Stargazing Marker Map

Markers show approximate planning centres, not guaranteed legal parking, exact observing pull-offs or unrestricted night access.

Marker order follows the final Location Stargazing Score ranking.

81

Kyrgyzstan Stargazing Suitability Score

This transparent editorial suitability index compares the selected location portfolio through disclosed darkness, cloud, atmospheric, horizon, access and astronomy-support evidence. It is not an official sky classification, a live forecast or a guarantee of access.

Highest-Rated LocationSong-Köl North Shore · 86/100
Target Observing WindowAugust–September 2026
Locations Assessed8
Factor Coverage7/7
Method Version2.2
Last Reviewed30 July 2026
Comparability QualityC · disclosed categorical and access proxies
Score ScopeSelected Location Portfolio

Artificial-Light Escape

30%90/100

Clear-Sky Reliability

20%85/100

Atmospheric Transparency Potential

15%85/100

Astronomical Darkness Duration

10%86/100

Elevation and Horizon Quality

10%70/100

Night Access and Legal Clarity

10%70/100

Dark-Sky Protection and Astronomy Support

5%25/100

Weighted Total: 90×0.30 + 85×0.20 + 85×0.15 + 86×0.10 + 70×0.10 + 70×0.10 + 25×0.05 = 80.6 → 81/100

The country score is the weighted total of seven factor medians across the same eight locations. It is not the average sky condition of Kyrgyzstan’s entire territory.

Read the Stargazing Suitability Score methodology

Ranked Stargazing Locations in Kyrgyzstan

Search by location or select a use pattern. Scores compare the same August–September window and the same seven factors.

8 locations shown

Song-Köl North Shore

Naryn Region · 3,016 m

Location Stargazing Score 86/100
Highest-Rated Location
Milky Way Yurt Camp Open Plateau Remote
Light Escape 95/100 Clear Sky 85/100 Access 70/100
  • The lake basin opens broad horizon sectors that are uncommon in Kyrgyz mountain valleys.
  • Seasonal camps on the northern shore reduce the need for night driving after a long exposure session.
  • The lake surface can support reflection work only during calm wind; rippled water is the normal alternative.
  • Kalmak-Ashuu and other approaches remain weather-dependent high-pass roads.

Planning caution: Confirm the operating dates of the booked camp and the chosen pass. Ask when exterior lights and generators are switched off, and keep tripods clear of livestock routes.

Tulpar-Köl

Chong-Alay · about 3,500 m

Location Stargazing Score 85/100
Milky Way Trans-Alay Yurt Camp Photography
Light Escape 95/100 Clear Sky 85/100 Access 70/100
  • The southern latitude gives the portfolio’s longest average astronomical-darkness duration during August–September.
  • The Trans-Alay wall provides a strong mountain foreground while the Alay basin remains broad enough for useful sky sectors.
  • Seasonal yurt camps and Sary-Mogol transport services make an overnight session practical without treating the lakeshore as a roadside stop.
  • Snow, cloud over Lenin Peak and katabatic wind can change the foreground more quickly than the sky calculation suggests.

Planning caution: Reach the camp before sunset, confirm the return track with the host and allow time to acclimatize before carrying equipment at roughly 3,500 metres.

Tash Rabat Valley

At-Bashy District · about 3,200 m

Location Stargazing Score 82/100
Caravanserai Star Trails High Valley Remote
Light Escape 95/100 Clear Sky 85/100 Access 70/100
  • The stone caravanserai gives a fixed architectural foreground for star trails and moonlit landscape work.
  • The Kara Koyun valley blocks parts of the low horizon, so compass direction matters more than at Song-Köl.
  • Nearby yurt stays can remove the need to drive the approach road after dark.
  • UNESCO lists Tash Rabat within Kyrgyzstan’s Silk Roads tentative property; it is not presented as a separately inscribed World Heritage Site.

Planning caution: Do not place lights or equipment against the monument. Verify local visiting rules, keep vehicle beams away from the structure and use a legal stopping area near the booked camp.

Kok-Kiya Valley

Köl-Suu approach · about 3,500 m

Location Stargazing Score 80/100
Border Permit Köl-Suu Base Remote Mountain
Light Escape 95/100 Clear Sky 85/100 Access 50/100
  • The score uses the Kok-Kiya camp valley rather than claiming the lakeshore as a drive-up observing point.
  • Very low settlement density supports strong light escape, while steep enclosing terrain reduces low-altitude sky access.
  • Köl-Suu lies in a border zone and current travel programs require a border permit at the checkpoint.
  • The final lake approach may involve hiking or horse travel, and water level does not guarantee a reflection composition.

Planning caution: Carry the required border document in the form requested by the arranger. Confirm road, river and checkpoint conditions shortly before departure; independent night access should not be assumed.

Barskoon–Arabel Plateau

Southern Issyk-Kul high road · about 3,800 m

Location Stargazing Score 79/100
High Pass Plateau Photography Remote
Light Escape 85/100 Clear Sky 85/100 Access 50/100
  • The useful astronomy terrain is above the forested lower gorge, where horizon width and elevation improve together.
  • The route climbs toward the Arabel and Kumtor corridor, so mining traffic, checkpoints and road restrictions can affect where stopping is lawful.
  • Snowfields and bright moonlight can illuminate the terrain while reducing Milky Way contrast.
  • Wind exposure is stronger than on the protected southern Issyk-Kul shore.

Planning caution: Treat the marker as a planning centre, not a pull-off. Verify the permitted road section, avoid industrial or service roads and turn back when weather, snow or access controls change.

Altyn Arashan

Ak-Suu District · about 2,600–3,000 m

Location Stargazing Score 72/100
Rough Access Mountain Valley Overnight Base Telescope
Light Escape 85/100 Clear Sky 70/100 Access 50/100
  • Overnight guesthouses and camps allow a session after day visitors leave, but their lighting must be checked locally.
  • The valley is enclosed by steep ridges and forest, favouring selected sky corridors rather than a full horizon.
  • Orographic cloud and moisture are more relevant here than on the inner Naryn plateaus.
  • The approach is commonly treated as a rough-vehicle or hiking route rather than a standard rental-car road.

Planning caution: Arrange the approach before arrival, reach the valley in daylight and do not drive an unsuitable vehicle onto the track. Keep a clear route back to the accommodation in darkness.

Tosor South Shore

Issyk-Kul Region · about 1,610 m

Location Stargazing Score 71/100
Easy Access Lake Horizon Photography Yurt Camp
Light Escape 70/100 Clear Sky 70/100 Access 85/100
  • The lake-facing horizon is broad and the main south-shore road makes this the lowest-friction option in the portfolio.
  • Village, camp and vehicle lights lower the light-escape score compared with the high plateaus.
  • Lake moisture and haze can soften low-altitude stars even when the sky overhead is clear.
  • The site works as a first-night equipment check before moving to Song-Köl, Barskoon or Naryn.

Planning caution: Use a booked camp or clearly lawful public area, keep headlights away from the shore and do not enter Skazka Canyon or protected land after hours without confirmed permission.

Sary-Chelek Lake

Western Tien Shan · about 1,900–2,000 m

Location Stargazing Score 67/100
Biosphere Reserve Forest Lake Protected Area
Light Escape 85/100 Clear Sky 55/100 Access 70/100
  • UNESCO describes a high mountain basin enclosed by ridges, with forest and a warmer, wetter local summer climate than the inner Tien Shan.
  • Dense vegetation and basin walls restrict horizon geometry despite low regional light pressure.
  • Reserve zoning and visitor controls make independent after-dark movement a rules question rather than a simple road-access question.
  • The location is better suited to moonlit forest-and-lake work than to a wide southern horizon.

Planning caution: Confirm reserve entry hours, overnight rules and permitted areas with the current authority. Do not treat the marker as permission to remain at the lakeshore after public visiting hours.

Song-Köl, Tash Rabat and Köl-Suu Form an Access Chain

Three of the four highest Naryn scores share remote-road strengths but not the same legal or terrain conditions.

Song-Köl Depends on the Pass, Not Only the Forecast

Kalmak-Ashuu and the other approaches place the lake behind high seasonal roads. August usually carries the most dependable camp network, while September adds darkness and colder road uncertainty. A cloud-free forecast in Kochkor or Naryn does not confirm the final pass.

Tash Rabat Trades Horizon Width for a Fixed Foreground

The caravanserai sits in the Kara Koyun valley at about 3,200 metres. Polaris-based star trails can work around the building, yet low targets may disappear behind the valley walls earlier than a planning app suggests. A daylight compass check is more useful here than choosing a position after dark.

Kok-Kiya Requires a Border Document

Current 2026 itineraries show a permit check before entry to the Köl-Suu border zone. The scored marker is the camp valley, not an exact lakeshore parking claim. Permit form, road condition, river crossings and the final lake approach need separate confirmation.

Route sequence: Naryn provides a practical acclimatization and supply stop before Tash Rabat or Kok-Kiya. Moving directly from a lowland arrival to a 3,500-metre night session adds fatigue, cold and altitude exposure to an already long drive.

The Southern Issyk-Kul Elevation Ladder Changes the Sky

ZoneTypical useHorizon patternAtmospheric issueAccess decision
Tosor South ShoreFirst-night setup, lake-horizon photographyOpen over water; mountain wall inlandLow haze, camp and road lightingMain-road base with lawful shore access
Barskoon lower gorgeForeground scouting before climbing higherForested and enclosedValley cloud and local moistureUseful staging area, not the strongest scored sky
Barskoon–Arabel PlateauHigh-elevation Milky Way and snowfield workWide sectors with exposed ridgesWind, snow and bright moon reflectionCheck road controls and legal stopping points
Altyn ArashanOvernight valley session near lodgingSelected corridors between ridgesOrographic cloud and forest moistureRough vehicle or hiking approach

The lake shore is easier but brighter. The high road is darker and more open, yet access is less certain. Altyn Arashan supplies overnight infrastructure, though the valley geometry removes much of the low horizon.

A Yurt Camp Is an Overnight Base, Not Automatic Darkness

Questions That Change the Night Session

  • Are exterior lamps left on through the night?
  • When does the generator stop?
  • Where are vehicles parked and when do they leave?
  • Is there an unlit side of the camp with a clear horizon?
  • Do livestock, dogs or footpaths cross that area?

Light Etiquette Around Yurts and Herds

  • Use a red headlamp for movement and setup.
  • Do not aim white light into occupied yurts.
  • Keep tripods away from doors, toilets and animal routes.
  • Ask before placing a person, yurt or herd in a photograph.
  • Shield vehicle lights when returning late.
Lake reflections at Song-Köl or Tulpar-Köl depend on wind and shoreline access. A ridge, yurt or caravanserai foreground should be planned before relying on still water.

Sary-Chelek Does Not Behave Like Inner Naryn

Sary-Chelek sits in the western Tien Shan on the Chatkal Range, where UNESCO describes a protected high basin with forest and warm, wet summers. The same ridges that shelter the lake also reduce horizon width. Inner Naryn locations such as Song-Köl, Tash Rabat and Kok-Kiya are more open and drier in the selected season, but they expose observers to stronger plateau wind and colder high-altitude nights.

Sary-Chelek: Moonlit Landscape and Restricted Sectors

Forest, reserve zoning and enclosing terrain make the lake a controlled landscape-photography option rather than a broad-horizon telescope field. Confirm visitor hours and overnight rules before building a night plan around the inner lake.

Inner Tien Shan: Wider Sky and Harder Logistics

Open jailoo and high basins improve the horizon, but seasonal roads, sparse mobile signal and rapid temperature loss after sunset make the logistics heavier. The higher score reflects the sky-and-horizon portfolio, not easier travel.

Eight-Location Stargazing Decision Matrix

The table follows the same score order as the markers and location cards.

RankLocationScoreLight EscapeClear SkyHorizonNight AccessMain constraint
1Song-Köl North Shore86/100958510070Seasonal passes, camp lighting and wind
2Tulpar-Köl85/10095858570Altitude, long approach and exposed weather
3Tash Rabat Valley82/10095857070Valley walls and monument etiquette
4Kok-Kiya Valley80/10095857050Border permit, remote road and enclosed terrain
5Barskoon–Arabel Plateau79/10085858550Road controls, wind and snow
6Altyn Arashan72/10085707050Rough approach and orographic cloud
7Tosor South Shore71/10070707085Village lights and lake haze
8Sary-Chelek Lake67/10085555070Reserve rules, forest and restricted horizon

Tonight’s Astronomical Darkness

Calculated live from each location’s coordinates using NOAA’s public solar-position formula. Weather, cloud cover and local obstructions are not included.

Calculating…

Score Verification and Limits

Review Record

  • Last Reviewed: 30 July 2026
  • Target Observing Window: 1 August–30 September 2026
  • Locations Assessed: 8
  • Method Version: 2.2
  • Comparability Quality: C
  • Principal periods: 2026 route information, long-term regional climate profiles and a 61-night 2026 darkness calculation.

Limits

  • No unsupported Bortle class, point SQM value or extracted VIIRS radiance is used.
  • Clear-sky and atmospheric factors use disclosed regional categorical evidence rather than claimed point climatology.
  • Markers are planning centres. Roadside stopping, reserve access, border documents and camp rules require current confirmation.
  • The score does not include live weather, wildfire smoke, temporary mining-road controls, snow closures or a guarantee of mobile signal.

Source groups include UNESCO heritage and biosphere records, the Rural Tourism Alliance Kyrgyzstan, Kyrgyz government and national tourism material, World Bank and FAO climate profiles, NOAA solar-position equations and location-specific community tourism sources.

(function(){ “use strict”; var boot=function(){ var root=document.getElementById(“stargaze-in-kyrgyzstan”); if(!root){return;} var prefersReduced=false; if(typeof window.matchMedia===”function”){ prefersReduced=window.matchMedia(“(prefers-reduced-motion: reduce)”).matches; } var mapData=[ {name:”Song-Köl North Shore”,region:”Naryn Region”,score:86,lat:41.9380,lng:75.1460,cardId:”song-kol-north-shore-card”}, {name:”Tulpar-Köl”,region:”Chong-Alay”,score:85,lat:39.6458,lng:72.8780,cardId:”tulpar-kol-card”}, {name:”Tash Rabat Valley”,region:”At-Bashy District”,score:82,lat:40.8225,lng:75.2888,cardId:”tash-rabat-valley-card”}, {name:”Kok-Kiya Valley”,region:”Köl-Suu approach”,score:80,lat:40.6900,lng:76.3720,cardId:”kok-kiya-valley-card”}, {name:”Barskoon–Arabel Plateau”,region:”Southern Issyk-Kul high road”,score:79,lat:41.8810,lng:77.7270,cardId:”barskoon-arabel-plateau-card”}, {name:”Altyn Arashan”,region:”Ak-Suu District”,score:72,lat:42.3480,lng:78.4770,cardId:”altyn-arashan-card”}, {name:”Tosor South Shore”,region:”Issyk-Kul Region”,score:71,lat:42.1680,lng:77.4350,cardId:”tosor-south-shore-card”}, {name:”Sary-Chelek Lake”,region:”Western Tien Shan”,score:67,lat:41.8740,lng:71.9500,cardId:”sary-chelek-lake-card”} ]; var mapElement=document.getElementById(“dsky-map-kyrgyzstan”); var markers=[]; var leafletAttempts=0; var createMarkerIcon=function(index){ var markerNode=document.createElement(“span”); markerNode.className=”dsky-marker”; markerNode.setAttribute(“aria-hidden”,”true”); markerNode.textContent=String(index+1); return window.L.divIcon({className:””,html:markerNode,iconSize:[34,34],iconAnchor:[17,17],popupAnchor:[0,-18]}); }; var createPopup=function(location){ var popup=document.createElement(“div”); popup.className=”dsky-popup”; var name=document.createElement(“strong”); name.textContent=location.name; popup.appendChild(name); popup.appendChild(document.createElement(“br”)); var summary=document.createElement(“span”); summary.textContent=location.region+” · “+location.score+”/100”; popup.appendChild(summary); popup.appendChild(document.createElement(“br”)); var detail=document.createElement(“a”); detail.className=”dsky-popup-detail”; detail.href=”#”+location.cardId; detail.dataset.cardId=location.cardId; detail.textContent=”View Details Below”; popup.appendChild(detail); return popup; }; var initMap=function(){ if(!mapElement){return;} if(mapElement.dataset.ready===”1″){return;} if(mapElement._leaflet_id){return;} if(typeof window.L===”undefined”){ leafletAttempts+=1; if(leafletAttempts===4){ if(!document.querySelector(“script[data-dsky-leaflet-fallback]”)){ var fallback=document.createElement(“script”); fallback.src=”https://cdn.jsdelivr.net/npm/leaflet@1.9.4/dist/leaflet.js”; fallback.dataset.dskyLeafletFallback=”1″; fallback.onload=initMap; document.head.appendChild(fallback); } } if(leafletAttempts===24){return;} window.setTimeout(initMap,250); return; } mapElement.dataset.ready=”1″; var map=window.L.map(mapElement,{scrollWheelZoom:false,attributionControl:true}); mapElement._dskyMap=map; if(map.attributionControl){map.attributionControl.setPrefix(false);} window.L.tileLayer(“https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png”,{maxZoom:19,attribution:”\u00A9 OpenStreetMap contributors”}).addTo(map); var bounds=[]; mapData.forEach(function(location,index){ var marker=window.L.marker([location.lat,location.lng],{icon:createMarkerIcon(index)}).addTo(map).bindPopup(createPopup(location)); markers.push(marker); bounds.push([location.lat,location.lng]); }); map.fitBounds(bounds,{padding:[32,32],maxZoom:6}); window.requestAnimationFrame(function(){ window.requestAnimationFrame(function(){map.invalidateSize();}); }); window.setTimeout(function(){map.invalidateSize();},250); window.setTimeout(function(){map.invalidateSize();},1000); window.addEventListener(“resize”,function(){map.invalidateSize();}); if(typeof window.ResizeObserver===”function”){ var observer=new window.ResizeObserver(function(){map.invalidateSize();}); observer.observe(mapElement); } var legendButtons=root.querySelectorAll(“.dsky-map-item”); Array.prototype.forEach.call(legendButtons,function(button){ button.addEventListener(“click”,function(){ var index=Number(button.getAttribute(“data-marker-position”)); var marker=markers[index]; if(marker){marker.openPopup();} }); }); mapElement.addEventListener(“click”,function(event){ var target=event.target; if(!target){return;} if(!target.classList.contains(“dsky-popup-detail”)){return;} event.preventDefault(); var card=document.getElementById(target.dataset.cardId); if(!card){return;} if(prefersReduced){card.scrollIntoView();} else{card.scrollIntoView({behavior:”smooth”,block:”start”});} card.classList.add(“is-highlighted”); window.setTimeout(function(){card.classList.remove(“is-highlighted”);},1800); }); }; initMap();var searchInput=document.getElementById(“kyrgyzstan-location-search”); var filterButtons=root.querySelectorAll(“.dsky-filter-btn”); var cardNodes=root.querySelectorAll(“.dsky-spot-card”); var cards=Array.prototype.slice.call(cardNodes); var resultCount=root.querySelector(“.dsky-result-count”); var activeFilter=”all”; var applyFilters=function(){ var query=””; if(searchInput){query=searchInput.value.toLowerCase().replace(/^\s+|\s+$/g,””);} var shown=0; cards.forEach(function(card){ var visible=true; if(query!==””){ var haystack=(card.getAttribute(“data-name”)+” “+card.getAttribute(“data-region”)+” “+card.getAttribute(“data-tags”)).toLowerCase(); if(haystack.indexOf(query)===-1){visible=false;} } if(visible){ if(activeFilter!==”all”){ var tags=card.getAttribute(“data-tags”).split(” “); if(tags.indexOf(activeFilter)===-1){visible=false;} } } card.hidden=!visible; if(visible){shown+=1;} }); if(resultCount){resultCount.textContent=String(shown)+” of 8 locations shown”;} }; if(searchInput){searchInput.addEventListener(“input”,applyFilters);} Array.prototype.forEach.call(filterButtons,function(button){ button.addEventListener(“click”,function(){ activeFilter=button.getAttribute(“data-filter”); Array.prototype.forEach.call(filterButtons,function(item){ item.classList.remove(“is-active”); item.setAttribute(“aria-pressed”,”false”); }); button.classList.add(“is-active”); button.setAttribute(“aria-pressed”,”true”); applyFilters(); }); });var toggles=root.querySelectorAll(“.dsky-evidence-toggle”); Array.prototype.forEach.call(toggles,function(button){ button.addEventListener(“click”,function(){ var panel=document.getElementById(button.getAttribute(“aria-controls”)); if(!panel){return;} var expanded=button.getAttribute(“aria-expanded”)===”true”; if(expanded){ panel.hidden=true; button.setAttribute(“aria-expanded”,”false”); button.textContent=”View Method, Location Values and Sources”; }else{ panel.hidden=false; button.setAttribute(“aria-expanded”,”true”); button.textContent=”Hide Method, Location Values and Sources”; } }); });var validateCountryScore=function(){ var scoreCard=root.querySelector(“.dsky-score-card”); if(!scoreCard){return;} var factors=scoreCard.querySelectorAll(“.dsky-score-factor”); var total=0; var weightTotal=0; var formulaParts=[]; Array.prototype.forEach.call(factors,function(factor){ var score=Number(factor.getAttribute(“data-score”)); var weight=Number(factor.getAttribute(“data-weight”)); total+=score*(weight/100); weightTotal+=weight; formulaParts.push(String(score)+”×”+(weight/100).toFixed(2)); var value=factor.querySelector(“.dsky-score-value”); if(value){value.textContent=String(Math.round(score))+”/100″;} var fill=factor.querySelector(“.dsky-bar-fill”); if(fill){fill.style.width=String(Math.round(score))+”%”;} }); if(factors.length===7){ if(weightTotal===100){ var rounded=Math.round(total); scoreCard.setAttribute(“data-overall-score”,String(rounded)); var number=scoreCard.querySelector(“.dsky-score-number”); if(number){number.textContent=String(rounded);} var display=root.querySelector(“[data-country-score-display]”); if(display){display.textContent=String(rounded);} var formula=scoreCard.querySelector(“.dsky-weighted-formula”); if(formula){formula.textContent=formulaParts.join(” + “);} var result=scoreCard.querySelector(“.dsky-weighted-result”); if(result){result.textContent=total.toFixed(1)+” → “+String(rounded)+”/100”;} } } };var validateLocationScores=function(){ var weights=[0.30,0.20,0.15,0.10,0.10,0.10,0.05]; var attrs=[“data-light-score”,”data-clear-score”,”data-atmosphere-score”,”data-darkness-score”,”data-horizon-score”,”data-access-score”,”data-support-score”]; cards.forEach(function(card){ var calculatedRaw=0; attrs.forEach(function(attribute,index){calculatedRaw+=Number(card.getAttribute(attribute))*weights[index];}); var rounded=Math.round(calculatedRaw); var storedRaw=card.getAttribute(“data-location-score-raw”); var rawMatches=Number(storedRaw).toFixed(4)===Number(calculatedRaw).toFixed(4); card.setAttribute(“data-location-score-valid”,rawMatches?”1″:”0″); card.setAttribute(“data-location-score”,String(rounded)); var visible=card.querySelector(“.dsky-location-score-number”); if(visible){visible.textContent=String(rounded);} }); var sorted=cards.slice().sort(function(first,second){ var scoreDifference=Number(second.getAttribute(“data-location-score”))-Number(first.getAttribute(“data-location-score”)); if(scoreDifference!==0){return scoreDifference;} return Number(second.getAttribute(“data-location-score-raw”))-Number(first.getAttribute(“data-location-score-raw”)); }); var currentIds=cards.map(function(card){return card.id;}).join(“|”); var expectedIds=sorted.map(function(card){return card.id;}).join(“|”); root.setAttribute(“data-location-order-valid”,currentIds===expectedIds?”1″:”0″); var mapOrder=mapData.map(function(location){return location.cardId;}).join(“|”); root.setAttribute(“data-map-order-valid”,mapOrder===currentIds?”1″:”0″); if(sorted.length===0){return;} var topScore=Number(sorted[0].getAttribute(“data-location-score”)); var leaders=sorted.filter(function(card){return Number(card.getAttribute(“data-location-score”))===topScore;}); var leaderNames=leaders.map(function(card){return card.getAttribute(“data-location-name”);}); root.setAttribute(“data-best-location”,leaderNames.join(” | “)); root.setAttribute(“data-best-location-score”,String(topScore)); root.setAttribute(“data-best-location-count”,String(leaders.length)); var labelText=leaders.length===1?”Highest-Rated Location”:”Joint Highest-Rated Locations”; var labelNodes=root.querySelectorAll(“[data-best-location-label]”); Array.prototype.forEach.call(labelNodes,function(node){node.textContent=labelText;}); var nameNodes=root.querySelectorAll(“[data-best-location-name]”); Array.prototype.forEach.call(nameNodes,function(node){node.textContent=leaderNames.join(“, “);}); var scoreNodes=root.querySelectorAll(“[data-best-location-score]”); Array.prototype.forEach.call(scoreNodes,function(node){node.textContent=String(topScore);}); cards.forEach(function(card){ var isLeader=Number(card.getAttribute(“data-location-score”))===topScore; var badge=card.querySelector(“.dsky-top-badge”); if(isLeader){ card.classList.add(“is-top-location”); if(!badge){ badge=document.createElement(“span”); badge.className=”dsky-top-badge”; var top=card.querySelector(“.dsky-spot-top”); if(top){top.appendChild(badge);} } if(badge){badge.textContent=leaders.length===1?”Highest-Rated Location”:”Joint Highest-Rated Location”;} }else{ card.classList.remove(“is-top-location”); if(badge){badge.parentNode.removeChild(badge);} } }); }; validateCountryScore(); validateLocationScores(); }; if(document.readyState===”loading”){ document.addEventListener(“DOMContentLoaded”,boot,{once:true}); }else{ boot(); } })();
📌

Complete guide: Stargazing Countries

Scroll to Top