diff --git a/conf.php-dist b/conf.php-dist index 9cec3251..bc0efaa2 100644 --- a/conf.php-dist +++ b/conf.php-dist @@ -17,6 +17,9 @@ $config['defaultView'] = array('lat' => 51.505, 'lon' => -0.09, 'zoom' => 18); // Shall the initial map view be retrieved via IP location? (default: true) $config['checkIpLocation'] = true; +// maxZoom (tiles will be scaled if higher than native zoom level). Default: 19. +$config['maxZoom'] = 19; + // Available base maps; first is default $config['baseMaps'] = array( array( diff --git a/src/mapLayers.js b/src/mapLayers.js index 4b55300c..fc4b99bc 100644 --- a/src/mapLayers.js +++ b/src/mapLayers.js @@ -2,7 +2,7 @@ register_hook('init', function () { if (!config.baseMaps) { var osm_mapnik = L.tileLayer('//{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', { - maxZoom: 19, + maxZoom: config.maxZoom || 19, attribution: '© OpenStreetMap' } ) @@ -21,7 +21,7 @@ register_hook('init', function () { { attribution: def.attribution, maxNativeZoom: def.maxZoom, - maxZoom: 19 + maxZoom: config.maxZoom || 19 } )