Stargazing in Honduras: Mountains & Island Skies

Stargazing in Honduras changes sharply between the western mountains, the Lake Yojoa basin, the humid Caribbean cordilleras and the Bay Islands. February–March provides the common planning window used here, when the six-location portfolio retains roughly ten hours of astronomical darkness while moving into the drier part of the Honduran seasonal cycle. The strongest light-pollution escape comes from remote highland and offshore settings, while Tegucigalpa adds a public observatory option for telescope-based observing.

Honduras Stargazing Score
67/100
Median-based score across seven weighted factors.
Highest-Rated Location
Cerro Las Minas, Celaque · 70/100
High elevation and strong escape from major urban light.
Preferred Observing Window
February–March
Used consistently for all six scored locations.
Locations Assessed
6
Mountains, lake basin, Caribbean mainland, islands and an urban observatory.
Strongest Sky Type
Remote mountain and offshore island darkness
Celaque and the Bay Islands provide the strongest escape from large light domes.
Main Atmospheric Risk
Caribbean cloud and maritime humidity
Northern mountains and islands remain more exposed to moist Caribbean air.
Primary Light-Dome Escape
Western highlands and offshore islands
These environments put the greatest distance or terrain separation between observers and major Honduran cities.

Honduras Stargazing Planning Map

Markers follow the same score-ranked location set used throughout the page.

Pins are approximate planning centers. In Celaque and Pico Bonito, trailheads, gates and legal overnight stopping points can be far from the marker, while island travel depends on boat and protected-area arrangements; confirm current park, ferry, lodging and permit conditions before a night session.

Honduras Stargazing Suitability Score

67/100

Honduras is assessed through a six-location mix spanning Celaque’s high western terrain, the Lake Yojoa basin, the Caribbean cordillera, two offshore island environments and the UNAH observatory in Tegucigalpa. Each place receives the same seven weighted factor scores, and the country factor values are the medians of those six locations. The result is an editorial night-sky planning index; current weather, transport and local access conditions remain separate trip-day checks.

Highest-Rated LocationCerro Las Minas, Celaque · 70/100
Preferred Observing WindowFebruary–March
Locations Assessed6
Factor Coverage7/7
Method Version2.2
Comparability QualityC
Score ScopeSelected Location Portfolio
Artificial-Light Escape30%78/100
Clear-Sky Reliability20%63/100
Atmospheric Transparency Potential15%55/100
Astronomical Darkness Duration10%100/100
Elevation and Horizon Quality10%70/100
Night Access and Legal Clarity10%60/100
Dark-Sky Protection and Astronomy Support5%0/100

Weighted Total: 77.5×0.30 + 62.5×0.20 + 55×0.15 + 100×0.10 + 70×0.10 + 60×0.10 + 0×0.05 = 67.0 → 67/100

Read the Stargazing Suitability Score methodology

Stargazing Locations in Honduras

Search the six scored environments or narrow the list by observing style.

6 locations
Highest-Rated Location

Cerro Las Minas, Celaque

Lempira · western highlands · summit elevation 2,849 m

MountainRemoteHigh Elevation
Location Stargazing Score: 70/100
Light Escape85
Clear Sky70
Access25
  • Cerro Las Minas is Honduras’s highest point at 2,849 m according to ICF.
  • It lies within the Cacique Lempira Biosphere Reserve and Montaña de Celaque’s cloud-forest landscape.
  • Western mountain separation provides a strong escape from the country’s largest urban light fields.
  • February–March averages about 9.75 hours of astronomical darkness at the planning latitude.

Main trade-off: The same forested, high-relief terrain that creates separation from city light makes access and horizon selection harder. Plan this as mountain travel rather than a roadside astronomy stop, and establish the legal overnight location before ascending.

Lake Yojoa, La Guama

Cortés · inland lake basin · planning-center elevation about 673 m

Easy AccessLake BasinOpen Horizon Sectors
Location Stargazing Score: 67/100
Light Escape70
Clear Sky70
Access70

La Guama gives Lake Yojoa a different planning role from the mountain sites. The basin is easier to reach, and carefully chosen shore or open-land viewpoints can trade some darkness for a less demanding observing setup.

  • Lake Yojoa is represented in Honduras’s Ramsar wetland network as Cuenca del Lago de Yojoa.
  • The lake can provide useful open-water horizon sectors, while the surrounding relief blocks other directions.
  • Moisture close to the water raises the chance of haze, mist or low cloud compared with the drier interior uplands.
  • The marker is a planning center near La Guama, not a designated night parking point.

Main trade-off: access is simpler than Celaque, but lakeside moisture and nearby settlements make viewpoint selection matter more. Use a legal public or lodging-based observing position rather than assuming shoreline access after dark.

Guanaja Upper Island

Bay Islands · offshore ridge · planning-center elevation about 303 m

IslandRemoteCaribbean Horizon
Location Stargazing Score: 67/100
Light Escape85
Clear Sky55
Access50

Guanaja gains much of its score from offshore separation. A dark direction over open Caribbean water can be far less affected by the urban glow found around mainland population centers, but the island’s atmosphere is still maritime.

  • The evaluated marker sits on Guanaja’s higher island terrain rather than on a cay settlement.
  • Guanaja includes protected forest and wetland areas documented through Honduran conservation authorities and international protected-area records.
  • Sea-level moisture and passing Caribbean cloud can erase the benefit of low artificial light on a poor night.
  • Boat schedules, lodging access and the legal route to an elevated observing position need to be part of the plan.

Main trade-off: strong light escape comes with weaker clear-sky and transparency reliability than Honduras’s interior sites.

Cayo Menor, Cayos Cochinos

Cayos Cochinos · protected archipelago · island high point about 141 m

IslandRemoteWide Sea Horizon
Location Stargazing Score: 66/100
Light Escape85
Clear Sky55
Access25
  • Cayo Menor sits within the protected Cayos Cochinos archipelago and hosts the Honduran Coral Reef Foundation’s facilities.
  • Management documentation records a high point of roughly 141 m on Cayo Menor.
  • The surrounding sea provides unusually broad horizon sectors for the Honduran portfolio.
  • The foundation publishes visitor check-in procedures and Welcome Center hours of 8:00 a.m.–5:00 p.m., so ordinary daytime admission cannot be treated as unrestricted overnight access.

Main trade-off: the island geometry is favorable for open horizons and low nearby light, but an astronomy session after normal visitor hours requires an arrangement that fits conservation-area and facility rules.

Pico Bonito Cangrejal Visitor Zone

Atlántida · Cangrejal valley · Caribbean mountain foothills

MountainEasy AccessProtected Area
Location Stargazing Score: 62/100
Light Escape70
Clear Sky55
Access70

The Cangrejal side of Pico Bonito is the practical mainland-Caribbean option in the portfolio. Honduras tourism material identifies this river corridor as a principal visitor area, with lodgings and access infrastructure that can make an astronomy-oriented overnight stay easier to organize than a high summit attempt.

  • Pico Bonito rises steeply from the Caribbean lowlands, creating strong local relief around the visitor corridor.
  • The Cangrejal valley has a narrower horizon than an island or open lake viewpoint.
  • La Ceiba’s light influence is most relevant toward the developed coastal side.
  • Cloud-forest and Caribbean moisture remain the main atmospheric constraints even in the drier planning window.

Main trade-off: the corridor is practical for a lodging-based observing plan, but a legal stopping area with the clearest horizon should be chosen locally. Check park, property and road arrangements before using a pull-off after dark.

OACS, UNAH Tegucigalpa

Francisco Morazán · university observatory · elevation about 1,076 m

ObservatoryEasy AccessPublic Astronomy
Location Stargazing Score: 57/100
Light Escape15
Clear Sky70
Access85

OACS fills a role that the remote sites cannot: organized public astronomy within the capital. UNAH’s Faculty of Space Sciences documents recurring Friday astronomy nights during the academic term, making the site the strongest astronomy-support location in the Honduras portfolio.

  • The observatory site is documented near 14°05′ N, 87°09′ W at about 1,076 m elevation.
  • UNAH public outreach includes telescope-oriented astronomy activities.
  • Tegucigalpa’s urban sky produces the portfolio’s lowest artificial-light score.
  • The site is better suited to public telescope observing and brighter targets than to maximum-darkness Milky Way work.

Main trade-off: access clarity and astronomy infrastructure are strong, but urban light dominates the score. Confirm the current UNAH program and campus entry arrangements before traveling for a public session.

Mountains, Lake Basins and Caribbean Islands

Honduras compresses several different observing environments into a relatively short north–south distance. The western Cordillera de Celaque raises Cerro Las Minas to 2,849 m, while Lake Yojoa occupies a lower interior basin. Farther north, Pico Bonito rises abruptly behind the Caribbean coast. Guanaja and Cayos Cochinos move the observer offshore, replacing enclosed mountain horizons with long sea sectors.

Those landscapes do not respond to weather in the same way. Honduras’s climate is shaped strongly by relief and Caribbean trade-wind exposure, and national climate information records large geographic differences in rainfall. That matters for astronomy because a dark island or cloud-forest mountain can still lose a night to low cloud, haze or moisture. February–March offers a useful countrywide compromise, but the Caribbean-facing locations remain the more weather-sensitive part of the portfolio.

Planning split: prioritize Celaque when altitude and escape from large light domes matter most; use Lake Yojoa when easier inland access is more important; choose the islands when an open sea horizon and offshore darkness outweigh the inconvenience of boat logistics.

SERNA climate context for Honduras · ICF western forest region

Celaque: Height Inside a Cloud-Forest Climate

Cerro Las Minas leads the Honduras ranking because it combines remote western geography with the country’s highest elevation. ICF places the summit at 2,849 m inside a biosphere-reserve landscape that includes cloud forest. The altitude helps with horizon separation and puts the site far from the urban conditions of Tegucigalpa or San Pedro Sula, but the forest environment remains an important part of the observing decision.

A high summit should therefore be paired with a weather and access plan rather than treated as an automatic clear-sky choice. Mountain cloud can form even when lower inland areas are usable, and forested ridges can obstruct low-altitude targets. For wide-field Milky Way work, an established legal position with a clear sector of sky may be more useful than simply reaching the highest possible point.

Route planning deserves equal weight. Cerro Las Minas is a mountain objective inside a protected landscape. A night session should be coordinated around the relevant entrance, trail, guide or lodging arrangements, with the return route established before darkness.

ICF — Cacique Lempira Biosphere Reserve and Cerro Las Minas

Cayos Cochinos and Guanaja: Water Horizons, Maritime Air

The island choices solve a different problem. Offshore separation reduces nearby artificial-light pressure, and a sea-facing position can preserve low horizons that are difficult to find in Honduras’s mountain valleys. Cayo Menor scores especially well for horizon geometry, while Guanaja’s larger and higher island terrain offers more choices for gaining elevation above immediate coastal obstructions.

Maritime air is the counterweight. Cayos Cochinos climate records show a pronounced wet-season pattern, and even during the preferred February–March window the atmosphere remains humid compared with a dry continental plateau. Thin haze can reduce contrast close to the horizon before clouds become extensive enough to end a session.

Access also separates the two island choices. The Honduran Coral Reef Foundation publishes check-in procedures and daytime Welcome Center hours for Cayos Cochinos, so a Cayo Menor astronomy plan needs prior coordination for any activity extending beyond ordinary visiting hours. Guanaja offers a larger inhabited island environment, but transport to a dark, elevated and legally usable viewpoint still depends on local boat, lodging and land-access arrangements.

Cayos Cochinos Welcome Center · Cayos Cochinos management plans · Protected Planet — Guanaja 2 Forest Reserve

Tegucigalpa’s Public-Astronomy Option

OACS at the Universidad Nacional Autónoma de Honduras changes the purpose of a stargazing trip. Its location inside Tegucigalpa gives it by far the weakest light-escape score in the six-site set, yet UNAH provides something the remote mountain and island markers do not: an established astronomy institution with recurring public observing activity.

That makes OACS useful for first telescope sessions, guided observing and brighter celestial targets. It is less suited to faint wide-field photography that depends on very low skyglow. The observatory’s approximately 1,076 m elevation helps place it above low coastal terrain, but it cannot remove the capital’s surrounding artificial light.

UNAH states that astronomy nights are normally held on Fridays during the academic term. Because program schedules and campus arrangements can change, the university’s current information should be checked before traveling.

UNAH Faculty of Space Sciences · UNAH astronomy FAQ

Honduras Stargazing Location Comparison

The table uses the same six locations and score order as the map and location cards.

LocationScoreLight EscapeClear SkyBest Planning UseHorizonNight AccessMain Constraint
Cerro Las Minas, Celaque708570Remote mountain darknessHigh terrain; forest and ridges require viewpoint selection25Mountain and protected-area logistics
Lake Yojoa, La Guama677070Accessible inland observingUseful open-water sectors70Lake moisture and local settlement light
Guanaja Upper Island678555Offshore dark-sky escapeSea horizons with elevated island terrain50Maritime cloud and transport planning
Cayo Menor, Cayos Cochinos668555Wide-horizon island observingStrong sea horizon geometry25Protected-area visiting hours and coordination
Pico Bonito Cangrejal Visitor Zone627055Lodging-based Caribbean mountain sessionSteep valley constraints70Cloud-forest moisture and La Ceiba light
OACS, UNAH Tegucigalpa571570Public telescope observingUrban basin and surrounding relief85Capital-city skyglow

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 Data Limits

Preferred Observing Window: February–March

Locations Assessed: 6

Method Version: 2.2

Comparability Quality: C

Scope: Selected location portfolio, not an area-average score for all of Honduras.

Principal Data Periods: SERNA’s 1981–2020 national climate context; protected-area and institutional records from the linked authorities; full-window February–March solar geometry.

Limitations: Artificial-light, clear-sky and atmospheric factors use disclosed categorical scoring where a single consistent public point series was not available for all six locations. Island transport, protected-area entry, campus access and mountain routes can change independently of the baseline score.

(function(){ “use strict”; var boot=function(){ var root=document.getElementById(“stargaze-in-honduras”); if(!root){return;}var prefersReduced=false; if(typeof window.matchMedia===”function”){ prefersReduced=window.matchMedia(“(prefers-reduced-motion: reduce)”).matches; }var scoreFactors=Array.prototype.slice.call(root.querySelectorAll(“.dsky-score-factor”)); var totalWeight=0; var calculatedCountryRaw=0; scoreFactors.forEach(function(factor){ var factorScore=Number(factor.getAttribute(“data-score”)); var factorWeight=Number(factor.getAttribute(“data-weight”)); totalWeight=totalWeight+factorWeight; calculatedCountryRaw=calculatedCountryRaw+(factorScore*(factorWeight/100)); var valueNode=factor.querySelector(“.dsky-score-value”); var fillNode=factor.querySelector(“.dsky-score-fill”); if(valueNode){ valueNode.textContent=String(Math.round(factorScore))+”/100″; } if(fillNode){ fillNode.style.width=String(Math.round(factorScore))+”%”; } });var scoreCard=root.querySelector(“.dsky-score-card”); if(scoreCard){ if(scoreFactors.length===7){ if(totalWeight===100){ var countryDisplay=Math.round(calculatedCountryRaw); scoreCard.setAttribute(“data-overall-score”,String(countryDisplay)); var countryDisplays=Array.prototype.slice.call(root.querySelectorAll(“[data-country-score-display]”)); countryDisplays.forEach(function(node){ node.textContent=String(countryDisplay); }); var weightedResult=root.querySelector(“.dsky-weighted-result”); if(weightedResult){ weightedResult.textContent=”77.5\u00D70.30 + 62.5\u00D70.20 + 55\u00D70.15 + 100\u00D70.10 + 70\u00D70.10 + 60\u00D70.10 + 0\u00D70.05 = “+calculatedCountryRaw.toFixed(1)+” \u2192 “+String(countryDisplay)+”/100”; } } } }var cards=Array.prototype.slice.call(root.querySelectorAll(“.dsky-location-card”)); var locationRecords=[]; cards.forEach(function(card,index){ var light=Number(card.getAttribute(“data-light-score”)); var clear=Number(card.getAttribute(“data-clear-score”)); var atmosphere=Number(card.getAttribute(“data-atmosphere-score”)); var darkness=Number(card.getAttribute(“data-darkness-score”)); var horizon=Number(card.getAttribute(“data-horizon-score”)); var access=Number(card.getAttribute(“data-access-score”)); var support=Number(card.getAttribute(“data-support-score”)); var calculatedRaw=(light*0.30)+(clear*0.20)+(atmosphere*0.15)+(darkness*0.10)+(horizon*0.10)+(access*0.10)+(support*0.05); var storedRaw=card.getAttribute(“data-location-score-raw”); var rawMatches=Number(storedRaw).toFixed(4)===Number(calculatedRaw).toFixed(4); var displayScore=Math.round(calculatedRaw); card.setAttribute(“data-location-score”,String(displayScore)); card.setAttribute(“data-score-verified”,rawMatches?”1″:”0″); var numberNode=card.querySelector(“.dsky-location-score-number”); if(numberNode){ numberNode.textContent=String(displayScore); } locationRecords.push({ card:card, name:card.getAttribute(“data-location-name”), score:displayScore, raw:calculatedRaw, index:index }); });var orderedRecords=locationRecords.slice().sort(function(a,b){ var scoreDifference=b.score-a.score; if(scoreDifference!==0){ return scoreDifference; } return b.raw-a.raw; });var orderMatches=true; orderedRecords.forEach(function(item,index){ if(item.card!==cards[index]){ orderMatches=false; } }); root.setAttribute(“data-location-order-verified”,orderMatches?”1″:”0″);var bestScore=0; if(orderedRecords.length!==0){ bestScore=orderedRecords[0].score; } var leaders=orderedRecords.filter(function(item){ return item.score===bestScore; }); var leaderNames=leaders.map(function(item){ return item.name; }); var leaderLabel=leaders.length===1?”Highest-Rated Location”:”Joint Highest-Rated Locations”;root.setAttribute(“data-best-location”,leaderNames.join(” | “)); root.setAttribute(“data-best-location-score”,String(bestScore)); root.setAttribute(“data-best-location-count”,String(leaders.length));var bestLabels=Array.prototype.slice.call(root.querySelectorAll(“[data-best-location-label]”)); bestLabels.forEach(function(node){ node.textContent=leaderLabel; }); var bestNames=Array.prototype.slice.call(root.querySelectorAll(“[data-best-location-name]”)); bestNames.forEach(function(node){ node.textContent=leaderNames.join(“, “); }); var bestScores=Array.prototype.slice.call(root.querySelectorAll(“[data-best-location-score]”)); bestScores.forEach(function(node){ node.textContent=String(bestScore); });cards.forEach(function(card){ var isLeader=false; leaders.forEach(function(item){ if(item.card===card){ isLeader=true; } }); 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 topRow=card.querySelector(“.dsky-spot-top”); if(topRow){ topRow.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){ if(badge.parentNode){ badge.parentNode.removeChild(badge); } } } });var searchInput=root.querySelector(“.dsky-search”); var filterButtons=Array.prototype.slice.call(root.querySelectorAll(“.dsky-filter-btn”)); var resultCount=root.querySelector(“.dsky-result-count”); var activeFilter=”all”;var applyFilters=function(){ var term=””; if(searchInput){ term=String(searchInput.value||””).toLowerCase().replace(/^\s+|\s+$/g,””); } var visibleCount=0; cards.forEach(function(card){ var name=String(card.getAttribute(“data-name”)||””); var region=String(card.getAttribute(“data-region”)||””); var tags=String(card.getAttribute(“data-tags”)||””); var haystack=(name+” “+region+” “+tags).toLowerCase(); var textMatch=term===””?true:haystack.indexOf(term)!==-1; var tagMatch=activeFilter===”all”?true:tags.split(” “).indexOf(activeFilter)!==-1; var visible=false; if(textMatch){ if(tagMatch){ visible=true; } } card.hidden=!visible; if(visible){ visibleCount=visibleCount+1; } }); if(resultCount){ resultCount.textContent=String(visibleCount)+(visibleCount===1?” location”:” locations”); } };if(searchInput){ searchInput.addEventListener(“input”,applyFilters); }filterButtons.forEach(function(button){ button.addEventListener(“click”,function(){ activeFilter=String(button.getAttribute(“data-filter”)||”all”); filterButtons.forEach(function(other){ other.setAttribute(“aria-pressed”,other===button?”true”:”false”); }); applyFilters(); }); });var evidenceToggles=Array.prototype.slice.call(root.querySelectorAll(“.dsky-evidence-toggle”)); evidenceToggles.forEach(function(button){ button.addEventListener(“click”,function(){ var panelId=button.getAttribute(“aria-controls”); var panel=document.getElementById(panelId); if(!panel){return;} var expanded=button.getAttribute(“aria-expanded”)===”true”; if(expanded){ button.setAttribute(“aria-expanded”,”false”); button.textContent=”View Method, Location Values and Sources”; panel.hidden=true; }else{ button.setAttribute(“aria-expanded”,”true”); button.textContent=”Hide Method, Location Values and Sources”; panel.hidden=false; } }); });var mapElement=document.getElementById(“dsky-map-honduras”); if(!mapElement){return;}var mapRoot=mapElement.closest(“.dsky-page”); if(!mapRoot){return;}if(typeof window.L===”undefined”){return;}if(mapElement.dataset.ready===”1″){ return; } if(mapElement._leaflet_id){ return; }var map=window.L.map(mapElement,{scrollWheelZoom:false,attributionControl:true}); mapElement._dskyMap=map; mapElement.dataset.ready=”1″;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 mapData=[ {name:”Cerro Las Minas, Celaque”,region:”Lempira \u00B7 high mountain”,score:70,raw:69.5000,lat:14.53365,lng:-88.68008,cardId:”honduras-location-1″}, {name:”Lake Yojoa, La Guama”,region:”Cort\u00E9s \u00B7 inland lake basin”,score:67,raw:67.2500,lat:14.88949,lng:-87.93835,cardId:”honduras-location-2″}, {name:”Guanaja Upper Island”,region:”Bay Islands \u00B7 offshore ridge”,score:67,raw:66.7500,lat:16.47130,lng:-85.87880,cardId:”honduras-location-3″}, {name:”Cayo Menor, Cayos Cochinos”,region:”Bay Islands \u00B7 protected archipelago”,score:66,raw:65.7500,lat:15.93333,lng:-86.46667,cardId:”honduras-location-4″}, {name:”Pico Bonito Cangrejal Visitor Zone”,region:”Atl\u00E1ntida \u00B7 Cangrejal valley”,score:62,raw:62.2500,lat:15.72711,lng:-86.73526,cardId:”honduras-location-5″}, {name:”OACS, UNAH Tegucigalpa”,region:”Francisco Moraz\u00E1n \u00B7 university observatory”,score:57,raw:56.7500,lat:14.08640,lng:-87.15940,cardId:”honduras-location-6″} ];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+” \u00B7 “+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”; detail.addEventListener(“click”,function(event){ event.preventDefault(); var card=document.getElementById(detail.dataset.cardId); if(!card){return;} card.scrollIntoView({behavior:prefersReduced?”auto”:”smooth”,block:”center”}); card.classList.add(“is-highlighted”); window.setTimeout(function(){ card.classList.remove(“is-highlighted”); },1600); }); popup.appendChild(detail);return popup; };var markers=[]; var bounds=[]; mapData.forEach(function(location,index){ var marker=window.L.marker([location.lat,location.lng],{ icon:createMarkerIcon(index) }).addTo(map).bindPopup(createPopup(location)); marker.on(“click”,function(){ marker.openPopup(); }); markers.push(marker); bounds.push([location.lat,location.lng]); });map.fitBounds(bounds,{padding:[32,32],maxZoom:6});var legendButtons=Array.prototype.slice.call(root.querySelectorAll(“.dsky-map-item”)); legendButtons.forEach(function(button){ button.addEventListener(“click”,function(){ var markerIndex=Number(button.getAttribute(“data-marker-index”)); var marker=markers[markerIndex]; if(marker){ marker.openPopup(); map.panTo(marker.getLatLng()); } }); });var repairMap=function(){ if(mapElement._dskyMap){ mapElement._dskyMap.invalidateSize(false); } };window.requestAnimationFrame(function(){ window.requestAnimationFrame(repairMap); });window.setTimeout(repairMap,250); window.setTimeout(repairMap,1000); window.addEventListener(“resize”,repairMap);if(typeof window.ResizeObserver===”function”){ var mapResizeObserver=new window.ResizeObserver(function(){ repairMap(); }); mapResizeObserver.observe(mapElement); } }; if(document.readyState===”loading”){ document.addEventListener(“DOMContentLoaded”,boot,{once:true}); }else{ boot(); } })();
📌

Complete guide: Stargazing Countries

Scroll to Top