0
0
mirror of https://github.com/Maks1mS/free-ozon-dpr.git synced 2024-12-24 02:52:58 +03:00

migrate to whatshere

This commit is contained in:
Maxim Slipenko 2024-06-06 20:37:58 +03:00
parent 38ea2317c0
commit d941934758

View File

@ -43,7 +43,7 @@ function onClick(event) {
popupName.textContent = feature.get("name"); popupName.textContent = feature.get("name");
popupAddress.textContent = feature.get("address"); popupAddress.textContent = feature.get("address");
popupAddress.href = `https://yandex.ru/maps/?pt=${lon},${lat}&z=18&l=map` popupAddress.href = `https://yandex.ru/maps/?whatshere[point]=${lon},${lat}&whatshere[zoom]=18&l=map`
popupLink.href = feature.get("link"); popupLink.href = feature.get("link");
popupSource.href = feature.get("source"); popupSource.href = feature.get("source");
popupOperationTime.textContent = feature.get("operationTime") ?? "неизвестно"; popupOperationTime.textContent = feature.get("operationTime") ?? "неизвестно";