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

BGDIINF_SB-2136: Added icon anchor #51

Merged
merged 9 commits into from
Jan 26, 2022
Merged

Conversation

ltshb
Copy link
Contributor

@ltshb ltshb commented Jan 26, 2022

The marker icons have different anchor offset as the others, therefore the service is now returning for each icon which anchor it needs to use (default anchor is the center of the icon).

Also update docu, added license, updated formatting, updated to python 3.9, improved route parsing, support for any scale and return proper 404 instead of 400 for icon not found.

ltshb added 9 commits January 26, 2022 07:43
This service is quite fast and doesn't make sense to have a 60s timeout,
every request should be done without a few hundred milliseconds.
When using a valid scale not part of 1x, 0.5x or 2x, the service
silently used scale 1x. Also when entering an invalid color value type,
e.g. `@1x-0,0,a.pgn`, the service returned 404 instead of 400.

Now we can use any valid scale and not only 1x, 0.5x and 2x. Also the
parsing of the route don't uses converter anymore which improved the
parsing and allow to use correct error message in case of invalid scale
or invalid color.
This is then easier for human to read the output and debug it.
The marker icons have different anchor offset as the others, therefor
the service is now returning for each icon which anchor it needs to use
(default anchor is the center of the icon)
@ltshb ltshb requested review from boecklic and pakb January 26, 2022 06:48
Copy link

@boecklic boecklic left a comment

Choose a reason for hiding this comment

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

👍

@ltshb ltshb merged commit 825cc0d into develop Jan 26, 2022
@ltshb ltshb deleted the feat-BGDIINF_SB-2136-icon-offset branch January 26, 2022 12:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants