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

widget_3d_tiles: the integrated layer manager is now optional. #808

Merged
merged 2 commits into from
Apr 18, 2024

Conversation

EricBoix
Copy link
Contributor

Some comments also added.

Copy link
Contributor

@mathieuLivebardon mathieuLivebardon left a comment

Choose a reason for hiding this comment

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

Okay for me, I've made 2 minor comments.

* @param {itowns.View} view - The view to which the layer will be added
* @param {itowns.C3DTilesLayer} layer - layer to be added to dom element
* @param {HTMLDivElement} layersContainer - HTML division holding the listed layers
* @param {string} layerContainerClassName - Class name of the layer container
Copy link
Contributor

Choose a reason for hiding this comment

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

layerContainer is optional the JSDOC syntax is:
* @param {string} [layerContainerClassName] - Class name of the layer container

// Available layers are optionnaly listed in the UI. Inhibiting this display
// allows for an alternative usage of other widgets with a similar purpose
// but different feature e.g. @ud-viz/widget_layer_choice.
if (typeof options.displayExistingLayers == 'undefined') {
Copy link
Contributor

Choose a reason for hiding this comment

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

The operator typeof is not required in this condition:
if(options.displayExistingLayers == undefined)
or
if(!options.displayExistingLayers)

@EricBoix EricBoix force-pushed the widget_3dtiles_optionnal_layer_manager branch from 21c039b to c46e838 Compare April 18, 2024 12:34
@EricBoix EricBoix merged commit 3d14869 into master Apr 18, 2024
3 checks passed
@EricBoix EricBoix deleted the widget_3dtiles_optionnal_layer_manager branch April 18, 2024 13:01
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