Skip to content

Commit

Permalink
add api key
Browse files Browse the repository at this point in the history
  • Loading branch information
Lyumih committed Oct 13, 2023
1 parent 982bbcd commit 7c4f6e5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion map/yandex/yandex.view.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 ) {
Expand Down

0 comments on commit 7c4f6e5

Please sign in to comment.