0
0
mirror of https://github.com/Maks1mS/free-ozon-dpr.git synced 2025-01-11 09:48:10 +03:00

add wikimapia copyright

This commit is contained in:
Maxim Slipenko 2024-06-09 07:48:31 +03:00
parent b96a456f1c
commit 7631c58c05
2 changed files with 9 additions and 2 deletions

View File

@ -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: [
'&#169; <a href="https://wikimapia.org/">Wikimapia</a>'
],
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`

View File

@ -70,4 +70,9 @@ body {
#popup-operation-time {
white-space: pre-line;
}
.ol-attribution a:hover {
color: var(--ol-brand-color);
text-decoration: underline;
}