Skip to content

Issue 1877: Fix _to_png when using fit_bounds #2135

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

Merged
merged 1 commit into from
Apr 22, 2025

Conversation

hansthen
Copy link
Collaborator

Close #1877

Beware, this change may break existing behavior. Previously all the images were generated against a full screen version of the map, even if the code contained a fit_bounds statement. We need to decide if this is a feature or a bug.

I did add a new parameter to _to_png() that allows the caller to set the size of the resulting image.

@hansthen hansthen changed the title Fix _to_png when using fit_bounds Issue 1877: Fix _to_png when using fit_bounds Apr 19, 2025
@hansthen hansthen requested review from ocefpaf and Conengmo April 19, 2025 05:32
@hansthen
Copy link
Collaborator Author

@ocefpaf can you have a look?

@ocefpaf
Copy link
Member

ocefpaf commented Apr 22, 2025

Previously all the images were generated against a full screen version of the map, even if the code contained a fit_bounds statement. We need to decide if this is a feature or a bug.

Indeed a breaking change, but in a way to_png was always an experimental feature, so I'm fine with the updated behavior that, IMO, is better.

@hansthen hansthen merged commit af8c326 into python-visualization:main Apr 22, 2025
13 checks passed
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.

Fit bounds not fitting to provided points
2 participants