From db67e3a2530476092eb645b35dda96f7af298804 Mon Sep 17 00:00:00 2001 From: Kleinc Date: Mon, 20 Oct 2025 10:30:45 +0200 Subject: [PATCH] docs(#35): :memo: Add docs for function loadCountryBorders --- src/cesiumViewer.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/cesiumViewer.js b/src/cesiumViewer.js index 45b84b0..c029105 100644 --- a/src/cesiumViewer.js +++ b/src/cesiumViewer.js @@ -27,6 +27,14 @@ export function createCesiumViewer(containerId) { return viewer } +/** +* Loads country borders from a GeoJSON file and adds them to the Cesium viewer. +* The data source is stored as viewer._countryBorders for visibility management. +* +* @param {Cesium.Viewer} viewer - The Cesium viewer instance +* @returns {Promise} The loaded GeoJSON data source +* @throws {Error} If the GeoJSON file cannot be loaded or parsed +*/ export async function loadCountryBorders(viewer) { const dataSource = await Cesium.GeoJsonDataSource.load( '/data/geo/world_simplified.geojson',