Skip to content

Commit

Permalink
refactor(#9): change background name from None to Globe
Browse files Browse the repository at this point in the history
  • Loading branch information
adriahso committed Sep 29, 2025
1 parent 5767ca1 commit 4c13231
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/potreeViewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ export async function createPotreeViewer(containerId, pointcloudUrl, settings) {
if (settings.pointBudget) viewer.setPointBudget(settings.pointBudget)

viewer.loadSettingsFromURL()
viewer.setBackground(null)
viewer.setDescription('Molloy Explorer')

viewer.loadGUI(() => {
Expand All @@ -29,6 +28,14 @@ export async function createPotreeViewer(containerId, pointcloudUrl, settings) {
const pc = e.pointcloud
viewer.scene.addPointCloud(pc)

// Change name of default background from "None" to "Globe"
$('#background_options_none')
.text('Globe')
.attr('id', 'background_options_globe')
.val('globe')

viewer.setBackground('globe')

pc.material.pointSizeType = Potree.PointSizeType.ADAPTIVE
pc.material.shape = Potree.PointShape.CIRCLE
pc.material.activeAttributeName = 'elevation'
Expand Down

0 comments on commit 4c13231

Please sign in to comment.