Replies: 1 comment 1 reply
-
I added following part in the setup script in the const bounds = L.latLngBounds(L.latLng(aa, ab), L.latLng(ba, bb));
lmap.value.leafletObject.setMaxBounds(bounds);
lmap.value.leafletObject.on('drag', function () {
lmap.value.leafletObject.panInsideBounds(bounds, { animate: false });
}); Where |
Beta Was this translation helpful? Give feedback.
1 reply
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.
-
How would I specify that I want to disable the repeating map by preventing panning beyond [ [-90, -180],[90, 180]] ?
Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions