fitBounds padding?
See original GitHub issueHello,
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:
- Created 4 years ago
- Comments:8 (4 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Great! I’ll publish a new RC today if I have time.
@timhilgenstoehler have you tried what’s documented on fitBounds?
https://github.com/react-native-mapbox-gl/maps/blob/master/docs/Camera.md#fitboundsnortheastcoordinates-southwestcoordinates-padding-animationduration
if it doesn’t works please post a concret sample code.