Skip to content

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 requested a review from ocefpaf November 29, 2022 15:57
@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