diff --git a/src/map.js b/src/map.js index cbe72b3..e436f9f 100644 --- a/src/map.js +++ b/src/map.js @@ -12,8 +12,10 @@ const MAP_ZOOM = 8.5; const customTileSource = new TileLayer({ source: new XYZ({ - // url: 'https://tile-server.ozon.ru/tile/default/{z}/{x}/{y}.png' - + attributionsCollapsible: false, + attributions: [ + '© Wikimapia' + ], tileUrlFunction: ([z, x, y]) => { const s = x % 4 + (y % 4) * 4 return `https://i${s}.wikimapia.org/?x=${x}&y=${y}&zoom=${z}&type=map&lng=1` diff --git a/src/style.css b/src/style.css index 3200cf8..6841c27 100644 --- a/src/style.css +++ b/src/style.css @@ -70,4 +70,9 @@ body { #popup-operation-time { white-space: pre-line; +} + +.ol-attribution a:hover { + color: var(--ol-brand-color); + text-decoration: underline; } \ No newline at end of file