From 7c4f6e5b96b088ca563f71c01cbb0ae3c7990be7 Mon Sep 17 00:00:00 2001 From: Mikhail Ivanov Date: Fri, 13 Oct 2023 18:19:37 +0000 Subject: [PATCH] add api key --- map/yandex/yandex.view.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/map/yandex/yandex.view.ts b/map/yandex/yandex.view.ts index cf909001c85..3776519fe76 100644 --- a/map/yandex/yandex.view.ts +++ b/map/yandex/yandex.view.ts @@ -6,8 +6,12 @@ namespace $.$$ { */ export class $mol_map_yandex extends $.$mol_map_yandex { + static api_key() { + return "3b2caac0-490e-4fdc-92de-d2a09e400365" + } + static api() { - return $mol_import.script( `https://api-maps.yandex.ru/2.1/?lang=${ $mol_locale.lang() }` ).ymaps + return $mol_import.script( `https://api-maps.yandex.ru/2.1/?apikey=${this.api_key()}&lang=${ $mol_locale.lang() }` ).ymaps } wait_ready( ymaps: any ) {