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

Bugfix: add/remove layer to layergroup #110

Merged
merged 2 commits into from
May 16, 2023

Conversation

Kilometerfresserin
Copy link
Contributor

@Kilometerfresserin Kilometerfresserin commented May 8, 2023

Bug description:

  • The Geoserver API returns lists for styles & publishables in a layergroup in case the layergroup contains more than one layer; if the layergroup contains only one layer, however, "styles" may either be a string or a dictionary.
  • The current implementation of add_layer_to_layergroup would however only check if styles is a string and thus fail when confronted with a dictionary.

Solution description:

  • The "single-layer" check now checks for "is not a list" rather than for "is a string"

@iamtekson iamtekson merged commit 2c65f9f into gicait:master May 16, 2023
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.

None yet

2 participants