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

Fit width/height of the generated map by bbox mapOption #85

Open
samuel-litzler opened this issue Mar 10, 2023 · 0 comments
Open

Fit width/height of the generated map by bbox mapOption #85

samuel-litzler opened this issue Mar 10, 2023 · 0 comments

Comments

@samuel-litzler
Copy link

samuel-litzler commented Mar 10, 2023

Request Feature :

Fit perfectly the size of width / height of the generated map with the bbox mapOption.

explanation with this bbox (blue feature) : [4.8514292, 45.7795070, 4.8535790, 45.7779198]

width and height set to 450 :
image

width and height set to 500:
image

You can see that there is padding around bbox(blue feature) -> because of zoom level(integer), here zoom is between 18 and 19 so it takes 18 to see the blue feature.

I dont know how works your code / externals librairies (sharp) you used but do you thing there is a way to perfectly fit with BBOX ?

(request initialy comes from #84 )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants