diff --git a/src/layers.js b/src/layers.js index 6ee391fb..42652055 100644 --- a/src/layers.js +++ b/src/layers.js @@ -462,7 +462,7 @@ class LayerGroupWithOptions extends L.LayerGroup { { code: 'Otm', isOverlay: false, - maxNativeZoom: 16, + maxNativeZoom: 15, scaleDependent: true, print: true, jnx: true, @@ -788,12 +788,11 @@ class LayerGroupWithOptions extends L.LayerGroup { title: 'Norway paper map', isDefault: false, layer: new L.TileLayer( - 'https://opencache.statkart.no/gatekeeper/gk/gk.open_gmaps?layers=toporaster4&zoom={z}&x={x}&y={y}', // eslint-disable-line max-len + 'https://cache.kartverket.no/v1/wmts/1.0.0/toporaster/default/webmercator/{z}/{y}/{x}.png', { code: 'Np', isOverlay: true, isOverlayTransparent: false, - maxNativeZoom: 16, tms: false, print: true, jnx: true, @@ -801,8 +800,7 @@ class LayerGroupWithOptions extends L.LayerGroup { noCors: false, shortName: 'norway_paper', bounds: [[57.81324, 4.19674], [71.27961, 31.56094]], - attribution: 'Geonorge', + attribution: 'Kartverket', } ) }, @@ -810,7 +808,7 @@ class LayerGroupWithOptions extends L.LayerGroup { title: 'Norway topo', isDefault: false, layer: new L.TileLayer( - 'https://opencache.statkart.no/gatekeeper/gk/gk.open_gmaps?layers=topo4&zoom={z}&x={x}&y={y}', + 'https://cache.kartverket.no/v1/wmts/1.0.0/topo/default/webmercator/{z}/{y}/{x}.png', { code: 'Nm', isOverlay: true, @@ -822,8 +820,7 @@ class LayerGroupWithOptions extends L.LayerGroup { noCors: false, shortName: 'norway_topo', bounds: [[57.81324, 4.19674], [71.27961, 31.56094]], - attribution: 'Geonorge', + attribution: 'Kartverket', } ) }, @@ -1009,6 +1006,7 @@ class LayerGroupWithOptions extends L.LayerGroup { scaleDependent: true, shortName: 'spain_topo', isOverlayTransparent: false, + minZoom: 1, bounds: [[35.9024, -9.51828], [43.8375, 4.50439]], noCors: false, cutline: getCutline('spain'),