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

padding #214

Open
hupe13 opened this issue Mar 12, 2023 · 1 comment
Open

padding #214

hupe13 opened this issue Mar 12, 2023 · 1 comment

Comments

@hupe13
Copy link
Collaborator

hupe13 commented Mar 12, 2023

Hello Bozdoz,

see support forum

sometimes with [leaflet-map fitbounds] - depending on screen size and zoom - the markers appear too much at the edge. Can you please add a small pad()?

map.fitBounds(mg.getBounds());

map.fitBounds(mg.getBounds());

to

 map.fitBounds(mg.getBounds().pad(0.1));

Thank you very much.

@hupe13
Copy link
Collaborator Author

hupe13 commented May 15, 2023

I thought about including this issue in PR, but I'm not sure if that's a good idea for everyone. Maybe you should introduce an option.

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

No branches or pull requests

1 participant