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

option to buffer Overlay image #35

Open
sheppard opened this issue Aug 25, 2016 · 1 comment
Open

option to buffer Overlay image #35

sheppard opened this issue Aug 25, 2016 · 1 comment

Comments

@sheppard
Copy link
Member

In L.WMS.Overlay, it would be useful to be able to specify a geographic (or pixel) buffer around the WMS request to avoid any edge artifacts and provide a nicer panning experience. The image requested would thus be larger than the viewport size - potentially much larger if a geographic buffer is used. This is roughly analogous to (but not quite the same as) the keepBuffer option in L.GridLayer and L.TileLayer.WMS.

This could be implemented in conjunction with #11.

@mdartic
Copy link

mdartic commented May 20, 2017

An idea would be to add another option in L.WMS.Overlay, and we could use it when getting the bounds of the map.

http://stackoverflow.com/questions/34137648/leaflet-bounds-with-padding explain it.

The method pad is in my opinion the solution ?

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