I have an Leaflet JS app, and when a user clicks on the canvas, the entire world is able to move causing the unsightly gray background to be shown.
1 Answer
I needed to use latlng fit to bounds.
I have an Leaflet JS app, and when a user clicks on the canvas, the entire world is able to move causing the unsightly gray background to be shown.
I needed to use latlng fit to bounds.