mirror of
https://github.com/Maks1mS/free-ozon-dpr.git
synced 2025-01-11 17:58:09 +03:00
add wikimapia copyright
This commit is contained in:
parent
b96a456f1c
commit
7631c58c05
@ -12,8 +12,10 @@ const MAP_ZOOM = 8.5;
|
|||||||
|
|
||||||
const customTileSource = new TileLayer({
|
const customTileSource = new TileLayer({
|
||||||
source: new XYZ({
|
source: new XYZ({
|
||||||
// url: 'https://tile-server.ozon.ru/tile/default/{z}/{x}/{y}.png'
|
attributionsCollapsible: false,
|
||||||
|
attributions: [
|
||||||
|
'© <a href="https://wikimapia.org/">Wikimapia</a>'
|
||||||
|
],
|
||||||
tileUrlFunction: ([z, x, y]) => {
|
tileUrlFunction: ([z, x, y]) => {
|
||||||
const s = x % 4 + (y % 4) * 4
|
const s = x % 4 + (y % 4) * 4
|
||||||
return `https://i${s}.wikimapia.org/?x=${x}&y=${y}&zoom=${z}&type=map&lng=1`
|
return `https://i${s}.wikimapia.org/?x=${x}&y=${y}&zoom=${z}&type=map&lng=1`
|
||||||
|
@ -71,3 +71,8 @@ body {
|
|||||||
#popup-operation-time {
|
#popup-operation-time {
|
||||||
white-space: pre-line;
|
white-space: pre-line;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.ol-attribution a:hover {
|
||||||
|
color: var(--ol-brand-color);
|
||||||
|
text-decoration: underline;
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user