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

Add option to block to fix map dimensions to match the image dimensions and do not allow panning outside of image #117

Open
dutchigor opened this issue Jul 19, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@dutchigor
Copy link
Member

Panning outside an image has to be possible with unknown map dimensions because otherwise the full image could never fit in one frame. However, if the map dimensions are fixed to the image dimensions, we could restrict the panning.

@dutchigor dutchigor added the enhancement New feature or request label Jul 19, 2023
@daniela0321
Copy link
Member

daniela0321 commented Jul 20, 2023

Should we also allow changing the map hight per device? Let's discuss this before working with this ticket.

Below an example where the hight is 800px which is good for desktop but not for mobile:

Image

Or would it be possible to make the image scale based on the viewport size? What look good in my bigger screen, doesn't look good in my laptop screen (it cuts the image on the top), see below:

Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants