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

WmsTileLayer: allow cql_filter parameter #1673

Merged
merged 3 commits into from
Nov 29, 2022

Conversation

Conengmo
Copy link
Member

Closes #1248

WmsTileLayer users requested a cql_filter parameter be passed through without converting to lowerCamelCase notation.

Comment on lines +226 to +228
if cql_filter:
# special parameter that shouldn't be camelized
self.options["cql_filter"] = cql_filter
Copy link
Member

Choose a reason for hiding this comment

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

Can we pop it from the kw args to avoid adding an extra arg entry? Not sure if this is best but maybe something like:

cql_filter = kwargs.pop("cql_filter", None)
if cql_filter:
    # special parameter that shouldn't be camelized
    self.options["cql_filter"] = cql_filter

@Conengmo Conengmo merged commit 5c0b8be into python-visualization:main Nov 29, 2022
@Conengmo Conengmo deleted the wms-tilelayer-cql-filter branch November 29, 2022 16:06
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.

support WMS parameter cql_filter
2 participants