-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
boxZoom with padding #9056
Comments
This sounds like a good addition. It looks like the underlying call to
Do you want to take a first stab at it? |
Some portion of this will overlap with changes pending in #8638. cc @arindam1993 |
@kkaefer I could try with first option as it seems less conflicting with other work and simpler to implement - are you ok with that? |
Hm, @arindam1993's work in #8638 seems to enable what you're looking for as well. @arindam1993, what's the status of this PR? |
Quick update: #8638 was unblocked recently so we may get some movement there in the near future |
I prefer this option, set it globally so you don't need to pass it for each camera operation. Then #9265 and #10169 would naturally be solved as all bounds are now for the inner view. |
I'll close this because I think it's fixed by #10386 but if I've misunderstood the issue here, just let me know. |
Motivation
I have a map that is conditionally covered by some other DOM elements depending on the current elements toggle state. I like to use boxZoom but then if some element is covering 30% of the map on the bottom it's not considered by default and the part that I zoomed in is covered by the DOM element at the bottom.
Implementation
Map object option like
zoomBoxOptions
(similar tofitBoundsOptions
) with setter and getter that would be later considered when boxZooming would be perfect.Edit: I was checking for any other way on how to implement that, looked like intercepting boxzoomstart/end events could be an answer, but there is no
boxZoomBounds
anymore to fit map to adjusted bounds. If you have other suggestions that's could potentially work that's also great.The text was updated successfully, but these errors were encountered: