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

Use individual wms url parameters for the baseLayers #985

Closed
wants to merge 4 commits into from

Conversation

marionb
Copy link
Contributor

@marionb marionb commented Jan 9, 2020

Addresses https://jira.camptocamp.com/browse/GEO-2777
Adds a parameter to get all the config Params from a URL and add them in the print request for that map.
This is implemented for the base maps requested in the restriction on landownership

@marionb marionb force-pushed the use-customParams-from-URL-GEO-2777 branch from 91c927f to 7cea1df Compare January 9, 2020 11:38
@marionb marionb self-assigned this Jan 9, 2020
@marionb marionb force-pushed the use-customParams-from-URL-GEO-2777 branch from f539b11 to 72cd48c Compare January 9, 2020 13:20
@marionb marionb force-pushed the use-customParams-from-URL-GEO-2777 branch from 72cd48c to c4cccf1 Compare January 9, 2020 13:27
@marionb marionb requested a review from jwkaltz January 10, 2020 09:45
@openoereb openoereb deleted a comment from pfirpfel Jan 10, 2020
"""
Returns the list of additionally configured wms_url_params.
Args:
params: optional argument used for given custom parameters. Expecting a dict
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
params: optional argument used for given custom parameters. Expecting a dict
params (dict): Optional argument used for given custom parameters.

See another function to have the right syntax to generate the documentation (I'm not sure for your "return" doc)

else:
log.info("no wms_url_params configuration detected; using default value")
result = {'TRANSPARENT': 'true'}
for param_key, param_value in params.items(): # TODO make this Python 2.x compatible!
Copy link
Contributor

Choose a reason for hiding this comment

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

What about this todo ?

@marionb
Copy link
Contributor Author

marionb commented Jan 13, 2020

@ger-benjamin Thanks for the review. Actually after discussion with @jwkaltz I decided to redo most of this and opened a new PR #986 . Your I fixed your comments there.
I will close this PR

@marionb marionb closed this Jan 13, 2020
@marionb marionb deleted the use-customParams-from-URL-GEO-2777 branch January 14, 2020 07:51
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.

3 participants