Restrict bounds
Restrict map panning to an area
This source code of this example is adapted from the MapLibre GL JS example - Restrict map panning to an area .
Uncomment the following line to install leafmap if needed.
1 | |
1 | |
To run this notebook, you will need an API key from MapTiler. Once you have the API key, you can uncomment the following code block and replace YOUR_API_KEY with your actual API key. Then, run the code block code to set the API key as an environment variable.
1 2 | |
1 2 3 4 | |
1 2 | |
