Skip to content

Primary Cesium Addition to Geoview#2860

Open
joshahussey wants to merge 55 commits into
Canadian-Geospatial-Platform:developfrom
joshahussey:develop
Open

Primary Cesium Addition to Geoview#2860
joshahussey wants to merge 55 commits into
Canadian-Geospatial-Platform:developfrom
joshahussey:develop

Conversation

@joshahussey

@joshahussey joshahussey commented Apr 25, 2025

Copy link
Copy Markdown

Description

Cesium was added to Geoview.
Styling of certain layers and support for certain layers unfinished.
STAC Catalog not yet added.

Fixes # (issue)

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • [ x ] New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • [ x ] This change requires a documentation update

How Has This Been Tested?

Tested locally using Rush Serve. Tested on many different demo pages.
https://joshahussey.github.io/geoview/add-layers.html

Checklist:

  • [ x ] I have build (rush build) and deploy (rush host) my PR
  • [ x ] I have connected the issues(s) to this PR
  • [ x ] My code follows the style guidelines of this project
  • [ x ] I have performed a self-review of my own code
  • [ x ] I have commented my code, particularly in hard-to-understand areas
  • [ x ] My changes generate no new warnings
  • I have created new issue(s) related to the outcome of this PR is needed
  • I have made corresponding changes to the documentation
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes

This change is Reviewable

joshahussey and others added 17 commits April 10, 2025 16:21
Removed script tag in HTML docs
Imported Cesium in ts
Updated webpack to allow for proper integration of cesium build
Added cesium package to rush/package.json
Zooming to 2D extents when opening 3D, and the reverse.
Changed scale formatting to apply more consistent rules
Included m and ft to scales
Fixed issue with pointerposition being null during 2d-3d map changes
Added support for mouse position
Expose the Cesium viewer for use with Geoview controls
Added the ability to toggle visibility in 3D with the geoview legend
controls.
This commit supports only individual layer toggling and not layer group
toggling.
@jolevesq

jolevesq commented May 2, 2025

Copy link
Copy Markdown
Member

@joshahussey Hi, I sent you an invite to our repo so you can host your PR. This way I will be able to test your code live.

@jolevesq jolevesq left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed 12 of 14 files at r1, 5 of 6 files at r2, all commit messages.
Reviewable status: 17 of 18 files reviewed, 2 unresolved discussions


packages/geoview-core/public/index.html line 12 at r2 (raw file):

  <body>
    <script src="https://cesium.com/downloads/cesiumjs/releases/1.113/Build/Cesium/Cesium.js"></script>

Why do we need this script tag?


packages/geoview-core/webpack.common.js line 215 at r2 (raw file):

          to: 'cesium/Workers',
        },
        // {

Do we need this code in comments?

@joshahussey joshahussey left a comment

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you, I will find the email and accept ASAP.

Reviewable status: 14 of 28 files reviewed, 2 unresolved discussions (waiting on @jolevesq)


packages/geoview-core/webpack.common.js line 215 at r2 (raw file):

Previously, jolevesq (Johann Levesque) wrote…

Do we need this code in comments?

No, it does not you're correct. We had to implement a patch in Cesium to address a bug related to imagery layers in their source code. This comment is there as we are in the midst of reworking the webpack config in order to accomodate the local cesium build, the final version of the webpack config will contain no comments. Thank you!


packages/geoview-core/public/index.html line 12 at r2 (raw file):

Previously, jolevesq (Johann Levesque) wrote…

Why do we need this script tag?

We do not. You are correct. I just removed it, thank you.

@jolevesq

jolevesq commented May 5, 2025

Copy link
Copy Markdown
Member

@joshahussey Can you go to https://github.com/orgs/Canadian-Geospatial-Platform/people?query=josh then set your profile as public. This way you will be able to do rush build then rush host and your demo page will be available for us to test. Thanks

joshahussey and others added 2 commits May 6, 2025 10:23
* feat(ui): Selector palceholders for STAC Browsers
* feat(ui): Listeners for onLayerAdded and onLayerRemoved events in Cesium
@joshahussey

Copy link
Copy Markdown
Author

@joshahussey Can you go to https://github.com/orgs/Canadian-Geospatial-Platform/people?query=josh then set your profile as public. This way you will be able to do rush build then rush host and your demo page will be available for us to test. Thanks

Done. I will run rush host shortly. We merged upstream changes and introduced some issues with panel sizing that needed to be addressed.

Josh Clarke and others added 3 commits May 6, 2025 15:03
* Clicking navbar home button with 3d map open will return 3d to default view extents.
* Connect the zoom in/out buttons to work with cesium when the 3D map is open

@github-advanced-security github-advanced-security AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CodeQL found more than 20 potential problems in the proposed changes. Check the Files changed tab for more details.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants