0

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.

http://jsfiddle.net/nos5gbjh/

enter image description here

1 Answer 1

1

I needed to use latlng fit to bounds.

http://leafletjs.com/reference.html#latlngbounds

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.