Skip to content

Commit

Permalink
refactor(#35): ♻️ Run prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
kleinc committed Oct 20, 2025
1 parent fe5b4ab commit 23944bf
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
14 changes: 7 additions & 7 deletions src/cesiumViewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,13 @@ export function createCesiumViewer(containerId) {
}

/**
* 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<Cesium.GeoJsonDataSource>} The loaded GeoJSON data source
* @throws {Error} If the GeoJSON file cannot be loaded or parsed
*/
* 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<Cesium.GeoJsonDataSource>} 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',
Expand Down
2 changes: 1 addition & 1 deletion src/potreeViewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export async function createPotreeViewer(containerId, pointcloudUrl, settings) {
// Initialize camera position and target point (manually chosen)
viewer.scene.view.setView(
[3961574.044, 1494736.334, 8348318.575], // Initial camera position
[1500922.651, 510673.030, 5427934.722] // Initial target point
[1500922.651, 510673.03, 5427934.722] // Initial target point
)

return viewer
Expand Down

0 comments on commit 23944bf

Please sign in to comment.