question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

fitBounds padding?

See original GitHub issue

Hello,

My first question is: Is this.camera.fitBounds([lng, lat], [lng, lat], 20, 1000) for example deprecated? I am always getting this.camera.fitBounds

I followed then the examples to flyTo and fitBounds and played with the state like in the examples… its working for now but what about the fitBounds padding?

bounds: {
  ne: this.houseBounds[0],
  sw: this.houseBounds[1],
  padding ??
}

Thanks for helping.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
kristfalcommented, Jun 19, 2019

Great! I’ll publish a new RC today if I have time.

1reaction
mfazekascommented, Jun 19, 2019
Read more comments on GitHub >

github_iconTop Results From Across the Web

Google Maps API 3 fitBounds padding - ensure markers are ...
I'd like to be able add padding to a map view after calling a map.fitBounds() , so all markers can be visible regardless...
Read more >
[Google Maps Library] Fit map to bounds with padding
Google Maps Library. Forge component by Labs. The Google Maps API have an update for the fitBounds with padding v3.42.
Read more >
fitBounds padding is not zooming correctly · Issue #4846
Using fitBounds with padding, I wanted to increase the padding on the left. I noticed that it seemed way off though for larger...
Read more >
Map fitBounds not applying padding when only one point
When using map.fitBounds(bounds, padding) it works great if my bounds have multiple points like: var bounds = new google.maps.LatLngBounds();
Read more >
leaflet fitBounds with padding - CodePen
leaflet fitBounds with padding ... Lorem ipsum dolor sit amet consectetur adipisicing elit. Obcaecati a deserunt distinctio vitae! Dolores ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found