Can I add some padding when adding data with centerMap true #3290
Unanswered
leverglowh
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
So I'm adding data programmatically calling the action
addDataToMapwithcenterMapto true.Sometimes I have a dataset of only a handful of points, and some end up under the side panel or other ui elements.
Is it possible to add a padding to the final map panning/zooming result?
Was thinking that one sad way to do this could be: get the bounds, center and zoom and then manually reducing the zoom proportionally. Is this the only way?
What I currently do:
Beta Was this translation helpful? Give feedback.
All reactions