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

Layer group is in wrong layer order when exporting to web map #989

Closed
aronsommer opened this issue Jan 10, 2022 · 5 comments
Closed

Layer group is in wrong layer order when exporting to web map #989

aronsommer opened this issue Jan 10, 2022 · 5 comments

Comments

@aronsommer
Copy link

QGIS 3.22.2 on macOS 11.6.2

I have a layer group with multiple gpx tracks in QGIS.
This layer group is at the top in QGIS.
But when I export to web map it is at the bottom of the layer order.

Screenshot

@boesiii
Copy link
Contributor

boesiii commented Jan 12, 2022

There is probably something weird with the layer group code. It would be better to not use layer groups. If you wanted to keep layer groups you could try to edit the html and js code results.

@aronsommer
Copy link
Author

My current workaround is putting the other layers also in their own layer group. The order between different layer groups is correct.

@robbitt
Copy link

robbitt commented Jan 13, 2022

Thanks @aronsommer - putting other layers in their own layer group works for me too

@andreaordonselli
Copy link
Collaborator

andreaordonselli commented Sep 14, 2022

For openlayers organizing layerList in the layers.js file you can choose the order. An example here #977

@andreaordonselli
Copy link
Collaborator

I have just released version 3.19.0, which fixes the issues discussed in this thread. Shortly, the update will be available within the QGIS plugin repository.

Thank you for using the plugin.

I would greatly appreciate it if you would consider donating a virtual coffee through the button on the homepage to support the development of qgis2web.

Best regards.

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

4 participants