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

Group layer control issue #754

Closed
4 tasks
ERS-Long opened this issue Aug 1, 2017 · 8 comments
Closed
4 tasks

Group layer control issue #754

ERS-Long opened this issue Aug 1, 2017 · 8 comments
Milestone

Comments

@ERS-Long
Copy link

ERS-Long commented Aug 1, 2017

If i use @tmcgee's search widget, after the search finished, the table of contents double itself with all the empty groups

How often can you reproduce it?

  • [ x] Always
  • Sometimes
  • Rarely
  • Unable
  • I didn’t try

Description:

Steps to reproduce:

  1. Include a JS Bin (or equivalent) link if possible. You can use this as a starting point
  2. Detail the exact steps taken to produce the problem
  3. Include a gif if possible; you can use LICEcap to make a gif: http://www.cockos.com/licecap/
  4. Check the browser console for errors (Use F12 to access the console)

Expected results:

Actual results:

Environment:

Software Version
CMV Version
Browser
Operating system
@ERS-Long
Copy link
Author

ERS-Long commented Aug 1, 2017

capture

@tmcgee
Copy link
Member

tmcgee commented Aug 1, 2017

@ERS-Long Might this be some custom code in your application? I cannot duplicate this issue in the search widget demo

@ERS-Long
Copy link
Author

ERS-Long commented Aug 1, 2017

@tmcgee i tried your demo example, after the search the toc has changed for me.

ok, your example works just fine. I will have to look more into mine. Thanks!

@tmcgee
Copy link
Member

tmcgee commented Aug 1, 2017

@ERS-Long Please post a screenshot of what you see in the demo. I don't see it.

image

@ERS-Long
Copy link
Author

ERS-Long commented Aug 1, 2017

i think i also grouped a list of mapserver services using the layerGroup: option, that is the main difference. not sure if that is reason for my issue.

@tmcgee
Copy link
Member

tmcgee commented Aug 1, 2017

@ERS-Long OK, got it. I see what is going on with group layer(s) when new layers are added to the layerControl widget. Thanks for providing the details.

@ERS-Long
Copy link
Author

ERS-Long commented Aug 2, 2017

Added that line, and it fixed the problem I experienced. Thanks a lot!

@gregoryj98
Copy link

Awesome! This fixes the problem in Drag and Drop widget too.

@tmcgee tmcgee added this to the v2.0.0-beta.3 milestone Jan 15, 2018
@green3g green3g closed this as completed in 1b98e94 Feb 6, 2018
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

No branches or pull requests

3 participants