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

Groups with same name cause issues #4378

Closed
offtherailz opened this issue Oct 18, 2019 · 0 comments
Closed

Groups with same name cause issues #4378

offtherailz opened this issue Oct 18, 2019 · 0 comments

Comments

@offtherailz
Copy link
Member

Description

If you try to create groups of the same name in the TOC, there are some problems while dragging and moving.

The problem is that the name of the group is used as id (name is the id a group, i think).

Maybe we should generate a unique id (name) for the group, anyway different from any other group in the TOC, and use the title (there is a default title for the localization) to allow the user to ignore this issue and create groups with the same title.

Another solution can be to deny creation 2 groups with same name, but because of nesting, I think It's not the best solution. Users may need to do subgroups like this.

Public Buildings:
 - Type 1
 - Type 2
PrivateBuildings: 
 - Type 1
 - Type 2

In case of Bug (otherwise remove this paragraph)

Browser Affected
any

Steps to reproduce

  • create 2 groups with the name "test" in the root (without selecting target group)
  • try to drag one of the groups in the default group

Expected Result

  • the group is dragged

Current Result

  • one of the layers disappears

Peek 18-10-2019 11-34

Other useful information (optional):

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

No branches or pull requests

4 participants