Skip to content

Commit

Permalink
Adding YaMapsAsset
Browse files Browse the repository at this point in the history
  • Loading branch information
malder1975 committed Sep 29, 2016
1 parent bf5996a commit e21c866
Show file tree
Hide file tree
Showing 2 changed files with 2,783 additions and 2,746 deletions.
25 changes: 25 additions & 0 deletions frontend/assets/YaMapsAsset.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?php


namespace frontend\assets;

use yii\web\AssetBundle;

/**
* Description of YaMapsAsset
*
* @author VGRovnov
*/
class YaMapsAsset extends AssetBundle
{
public $basePath = '@webroot';
public $baseUrl = '@web';

public $js = [
'https://api-maps.yandex.ru/2.1/?lang=ru_RU',
];

public $jsOptions = [
'position' => \yii\web\View::POS_HEAD,
];
}
Loading

0 comments on commit e21c866

Please sign in to comment.