From 7c4f6e5b96b088ca563f71c01cbb0ae3c7990be7 Mon Sep 17 00:00:00 2001 From: Mikhail Ivanov Date: Fri, 13 Oct 2023 18:19:37 +0000 Subject: [PATCH 1/2] 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 ) { From c78f1e04fce2cf86692217a06750af5278323cfb Mon Sep 17 00:00:00 2001 From: Mikhail Ivanov Date: Fri, 13 Oct 2023 18:27:16 +0000 Subject: [PATCH 2/2] remove --- map/yandex/yandex.view.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/map/yandex/yandex.view.ts b/map/yandex/yandex.view.ts index 3776519fe76..5dd41e591dc 100644 --- a/map/yandex/yandex.view.ts +++ b/map/yandex/yandex.view.ts @@ -7,7 +7,7 @@ namespace $.$$ { export class $mol_map_yandex extends $.$mol_map_yandex { static api_key() { - return "3b2caac0-490e-4fdc-92de-d2a09e400365" + return "" } static api() {