Skip to content

Commit

Permalink
Merge pull request #644 from Lyumih/feature/yandex_map_key
Browse files Browse the repository at this point in the history
add api key
  • Loading branch information
nin-jin authored Oct 13, 2023
2 parents 982bbcd + c78f1e0 commit a44d832
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 ""
}

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 a44d832

Please sign in to comment.