Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Building permits slicing + measurements #24

Merged
merged 6 commits into from
Jan 8, 2025

Conversation

vladyslav-tk
Copy link
Contributor

No description provided.

@vladyslav-tk vladyslav-tk changed the title Building permits slicing WIP: Building permits slicing Jan 6, 2025
@vladyslav-tk vladyslav-tk changed the title WIP: Building permits slicing Building permits slicing Jan 6, 2025
@vladyslav-tk vladyslav-tk requested a review from gberaudo January 6, 2025 15:35
@vladyslav-tk vladyslav-tk force-pushed the building_permits_slicing branch from ad7304c to ebb33d8 Compare January 6, 2025 16:49
@vladyslav-tk vladyslav-tk changed the title Building permits slicing Building permits slicing + measurements Jan 8, 2025
@vladyslav-tk vladyslav-tk force-pushed the building_permits_slicing branch from fcc4bc5 to 8e9a494 Compare January 8, 2025 08:04

renderSceneIfTranslucent(): void {
// because calling render decreases performance, only call it when needed.
// see https://cesium.com/docs/cesiumjs-ref-doc/Scene.html#pickTranslucentDepth
Copy link
Contributor

Choose a reason for hiding this comment

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

pickTranslucentDepth is false by default.
Can you explain what you mean?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I moved it from NGM, we will need it if we want to draw on a map when it semi transparent

renderSceneIfTranslucent(): void {
// because calling render decreases performance, only call it when needed.
// see https://cesium.com/docs/cesiumjs-ref-doc/Scene.html#pickTranslucentDepth
if (this.viewer_.scene.globe.translucency.enabled) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Is it enabled?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

no but maybe in future

if (this.eventHandler_) {
this.eventHandler_.destroy();
}
this.eventHandler_ = undefined;
Copy link
Contributor

Choose a reason for hiding this comment

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

Can be moved in the if

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

@vladyslav-tk vladyslav-tk force-pushed the building_permits_slicing branch from 8e9a494 to 205eb1a Compare January 8, 2025 12:06
@vladyslav-tk vladyslav-tk force-pushed the building_permits_slicing branch from 205eb1a to 993e3cb Compare January 8, 2025 12:11
@vladyslav-tk vladyslav-tk merged commit 90b8320 into master Jan 8, 2025
2 checks passed
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.

2 participants