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

Marker size workaround for backwards compatibility'ish #1947

Merged
merged 3 commits into from
Sep 9, 2022

Conversation

ZakarFin
Copy link
Member

@ZakarFin ZakarFin commented Sep 9, 2022

Pre-2.7.0 Oskari marker sizes were always given as values between 1-5 and calculated to actual size with size * 10 + 40. In 2.7.0 the size for markers changed to actual pixel values WHEN using external graphic instead of the built-in shapes (since the size is easier to know for developer experience when using external graphics). Since there are RPC-based apps using the small values with external graphics those markers are too tiny to see. Any "real" value for marker size is most probably at least 10 with the new API. So this is a hack' ish kind of workaround to restore outdated RPC-based apps to have usable markers while still maintaining the new API.

Kinda weird and wonky, but in practice this should fix any compatibility issues that people might have.

@ZakarFin ZakarFin added this to the 2.9.0 milestone Sep 9, 2022
@ZakarFin ZakarFin merged commit 9d2c787 into oskariorg:develop Sep 9, 2022
@ZakarFin ZakarFin deleted the marker-workaround branch September 9, 2022 13:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant