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

Fix #10633 Enhancing MapViews Layer Options #10747

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

allyoucanmap
Copy link
Contributor

Description

This PR introduces following changes inside the layers section of the MapViews plugin:

  • replaced the custom layers list with the TOC component
  • included support for group nodes
  • added input search to filter layer by title
  • added global link and unlink buttons to sync all layers and groups at once
  • reviewed the concept of refresh with link/unlink to inform the user if a layer or group is connected or not with the main TOC

there is also a fix related to 3DTiles to ensure the expected changes in the update are triggered when a tileset is loaded asynchronously

Screenshot showing the new layers section, including groups and search input with toolbar

image

Please check if the PR fulfills these requirements

What kind of change does this PR introduce? (check one with "x", remove the others)

  • Feature

Issue

What is the current behavior?

#10633

What is the new behavior?

Refactor of the UI of layers sections inside the MapViews plugin including the concept of groups

Breaking change

Does this PR introduce a breaking change? (check one with "x", remove the other)

  • No

Other useful information

@allyoucanmap allyoucanmap added this to the 2025.01.00 milestone Jan 13, 2025
@allyoucanmap allyoucanmap self-assigned this Jan 13, 2025
@allyoucanmap allyoucanmap linked an issue Jan 13, 2025 that may be closed by this pull request
6 tasks
@tdipisa tdipisa requested a review from MV88 January 13, 2025 17:09
Copy link
Contributor

@MV88 MV88 left a comment

Choose a reason for hiding this comment

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

Functionality wise seems all good

There are a few things I noticed:

  • copyrights on files are old
  • many components are missing jsdocs and proptypes

return true;
}
if (layer.type === 'vector') {
return !!layer?.features?.find(({ geometry }) => ['Polygon'].includes(geometry?.type));
Copy link
Contributor

Choose a reason for hiding this comment

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

why only polygons?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

because the vector layer options are used to create clipping areas.
The only supported geometry for clipping areas is Polygon.

</Section>
);
}

LayersSection.contextTypes = {
Copy link
Contributor

Choose a reason for hiding this comment

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

what about LayersSection.propTypes?

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

Successfully merging this pull request may close these issues.

Enhancing MapViews Layer Options
2 participants