forked from MapComplete/MapComplete
MapComplete now always zooms up to level 21 with overzoom, fix #606
This commit is contained in:
parent
7a43b55245
commit
965faca0e5
6 changed files with 18 additions and 13 deletions
|
@ -156,11 +156,12 @@ export default class AvailableBaseLayersImplementation implements AvailableBaseL
|
|||
|
||||
const isUpper = urlObj.searchParams["LAYERS"] !== null;
|
||||
const options = {
|
||||
maxZoom: maxZoom ?? 19,
|
||||
maxZoom: Math.max(maxZoom ?? 19, 21),
|
||||
maxNativeZoom: maxZoom ?? 19,
|
||||
attribution: attribution + " | ",
|
||||
subdomains: domains,
|
||||
uppercase: isUpper,
|
||||
transparent: false
|
||||
transparent: false,
|
||||
};
|
||||
|
||||
for (const paramater of paramaters) {
|
||||
|
@ -186,8 +187,9 @@ export default class AvailableBaseLayersImplementation implements AvailableBaseL
|
|||
return L.tileLayer(url,
|
||||
{
|
||||
attribution: attribution,
|
||||
maxZoom: maxZoom,
|
||||
minZoom: 1,
|
||||
maxZoom: Math.max(21, maxZoom ?? 19),
|
||||
maxNativeZoom: maxZoom ?? 19,
|
||||
minZoom: 1,
|
||||
// @ts-ignore
|
||||
wmts: isWMTS ?? false,
|
||||
subdomains: domains
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue