Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

The maximum zoom level for a leaflet map can be increased by changing the value of the "maxZoom" option in the map options.

For example, if you want to increase the maximum zoom level from the default value of 18 to 20, you can use the following code:

var map = L.map('map', {
  maxZoom: 20
});

This will allow you to zoom in closer to the map than before. However, keep in mind that increasing the maximum zoom level may also increase the amount of data that needs to be loaded, which can impact performance.